.NET/Link API Version 1.5 USE FRAMES

IMathLink.GetData Method 

Gets a specified number of bytes in the textual form of the expression currently being read.

[Visual Basic]
Function GetData( _
   ByVal numRequested As Integer _
) As Byte()
[C#]
byte[] GetData(
   int numRequested
);

Parameters

numRequested
The maximum number of bytes to read.

Remarks

You can use BytesToGet to determine if more GetData calls are needed to completely read the element.

The returned array will have a length of at most numRequested.

Exceptions

Exception Type Condition
MathLinkException If the waiting data cannot be read in this format, or on any other MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | BytesToGet | GetNextExpressionType | GetExpressionType