IMathLinkCheckFunctionWithArgCount Method

Reads a function name and argument count and requires that it match the specified function name and arg count.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
void CheckFunctionWithArgCount(
	string f,
	int argCount
)

Parameters

f  String
The function name that you are expecting.
argCount  Int32
The argument count that you are expecting.

Remarks

If the incoming function is not the specified one, or it does not have the specified number of arguments, a MathLinkException is thrown.

This method is similar to GetFunction(Int32) in that it reads the name and argument count off the link. Use it in situations where you want an error to occur if the function and argument count are not what you expect.

Exceptions

MathLinkExceptionIf the data waiting on the link is not the named function with the named arg count, or on any other MathLink error.

See Also