IKernelLinkEvaluateToOutputForm Method

Sends code for evaluation and returns the result as a string formatted in Wolfram Language OutputForm.

Remarks

This method sends the evaluation and waits for the result to come back as a string. It discards any packets other than the result (for example, Wolfram Language messages or Print output).

The string will have newlines in the Windows CR/LF format.

It does not throw a MathLinkException. Instead it returns null if there was an error. You can use the LastError property to see the MathLinkException that was generated.

Overload List

EvaluateToOutputForm(Expr, Int32) Sends the code to evaluate as an Expr.
EvaluateToOutputForm(String, Int32) Sends the code to evaluate as a string.

See Also