.NET/Link API Version 1.7 USE FRAMES

IKernelLink.WaitAndDiscardAnswer Method 

Reads and discards all packets from a computation, including the result.

[Visual Basic]
Sub WaitAndDiscardAnswer()
void WaitAndDiscardAnswer();


Use this method if you are not interested in the result of a computation. If you are interested in examining the result of the evaluation, use WaitForAnswer instead.

Use this method after sending an expression to evaluate with Evaluate or a manual sequence of Put methods.

Examples of packets that arrive and are discarded other than the result are PacketType.Text, PacketType.Message, PacketType.Display, etc. If you want to examine or operate on the incoming packets that are discarded by this method, use the PacketArrived event.


Exception Type Condition
MathLinkException On any MathLink error.

See Also

IKernelLink Interface | Wolfram.NETLink Namespace | WaitForAnswer