.NET/Link API Version 1.7 USE FRAMES

IMathLink.Flush Method 

Immediately transmits any data buffered for sending over the link.

[Visual Basic]
Sub Flush()
[C#]
void Flush();

Remarks

Any calls that read from the link will flush it, so you only need to call Flush manually if you want to make sure data is sent right away even though you are not reading from the link immediately. Calls to Ready will not flush the link, so if you are sending something and then polling Ready waiting for the result to arrive (as opposed to just calling NextPacket or WaitForAnswer), you must call Flush to ensure that the data is sent.

Exceptions

Exception Type Condition
MathLinkException On any MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace