.NET/Link API Version 1.7 USE FRAMES

IKernelLink.PutReference Method

Sends an object to Mathematica "by reference".

Overload List

Sends the object as its actual runtime type.

void PutReference(object);

Sends the object cast as a parent type or interface.

void PutReference(object,Type);


Use this method to pass .NET objects to Mathematica so that methods can be invoked directly from Mathematica code as described in Part 1 of the .NET/Link User Guide.

Objects sent to Mathematica using this method arrive as NETObject expressions.

You must call EnableObjectReferences before PutReference will function properly.

The Put method (inherited from IMathLink) will also send some objects by reference, but there are three reasons to call PutReference instead:

See Also

IKernelLink Interface | Wolfram.NETLink Namespace | EnableObjectReferences | GetObject