IMathLinkPutFunctionAndArgs Method

Sends a function name and its arguments.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
void PutFunctionAndArgs(
	string f,
	params Object[] args
)

Parameters

f  String
The function name.
args  Object
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(Boolean) method on each one individually.

C#
// 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:
C#
ml.PutFunctionAndArgs("Plus", new int[]{1, 2, 3, 4});

Exceptions

MathLinkExceptionOn any MathLink error.

See Also