.NET/Link API Version 1.7 USE FRAMES

IMathLink.Put Method (Object)

Sends an object, including strings and arrays.

[Visual Basic]
Sub Put( _
   ByVal obj As Object _
)
[C#]
void Put(
   object obj
);

Parameters

obj
The object to send.

Remarks

Only a limited set of .NET objects can be usefully sent across a link with this method. These are objects whose "values" have a meaningful representation in Mathematica:

TypeSent As:
nullthe symbol Null
stringMathematica string
arraylist of the appropriate dimensions
boxed primitive (Int32, Boolean, etc.)the unboxed value
Exprexpression
Complex classComplex number
All other objects have no meaningful "value" representation in Mathematica. For these objects, the relatively useless obj.ToString() is sent. The version of Put in the IKernelLink interface, which is the interface most programmers will be using, will put objects "by reference" if they have no meaningful value representation in Mathematica, meaning that they show up as NETObject expressions.

Exceptions

Exception Type Condition
MathLinkException On any MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | IMathLink.Put Overload List