IKernelLinkPut(Object) Method

Sends an object, including strings and arrays. Overrides the IMathLink version to allow you to send objects "by reference" that have no meaningful value representation in the Wolfram Language.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
void Put(
	Object obj
)

Parameters

obj  Object
The object to send.

Implements

IMathLinkPut(Object)

Remarks

TypeSent As:
nullthe symbol Null
stringWolfram Language string
arraylist of the appropriate dimensions
boxed primitive (Int32, Boolean, etc.)the unboxed value
Exprexpression
Complex classComplex number
all other objectsNETObject expression

Put sends objects that meaningful "value" representations in Wolfram Language as their values, and behaves like PutReference(Object) for objects that have no meaningful value and therefore must be sent by reference (that is, as NETObject expressions).

You must call EnableObjectReferences before Put will be able to send objects by reference.

Exceptions

MathLinkExceptionOn any MathLink error.

See Also