.NET/Link API Version 1.5 USE FRAMES

IMathLink.GetArgCount Method 

Reads the argument count of an expression being read manually.

[Visual Basic]
Function GetArgCount() As Integer
[C#]
int GetArgCount();

Return Value

The number of arguments of the function.

Remarks

This method can be used after GetNextExpressionType or GetExpressionType returns the value ExpressionType.Function. The argument count is always followed by the head of the expression. The head is followed by the arguments; the argument count tells how many there will be.

Exceptions

Exception Type Condition
MathLinkException On any MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | GetNextExpressionType | GetExpressionType