.NET/Link API Version 1.7 USE FRAMES

IMathLink.PutFunctionAndArgs Method 

Sends a function name and its arguments.

[Visual Basic]
Sub PutFunctionAndArgs( _
   ByVal f As String, _
   ParamArray args As Object() _
)
[C#]
void PutFunctionAndArgs(
   string f,
   params object[] args
);

Parameters

f
The function name.
args
The arguments to the function.

Remarks

This method is a convenient way to send a function with its arguments in a single call.

The arguments are sent as they would be if you used the Put method on each one individually.

// This sends 1+2+3+4
ml.PutFunctionAndArgs("Plus", 1, 2, 3, 4); 
In languages other than C# or VB.NET that do not support variable numbers of arguments, the args must be packaged into an array:
ml.PutFunctionAndArgs("Plus", new int[]{1, 2, 3, 4}); 

Exceptions

Exception TypeCondition
MathLinkExceptionOn any MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace