.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
int GetArgCount();

Return Value

The number of arguments of the function.


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.


Exception Type Condition
MathLinkException On any MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | GetNextExpressionType | GetExpressionType