.NET/Link API Version 1.7 USE FRAMES

MathDelegate.CreateDelegate Method (Type, String, IKernelLink, Boolean, Boolean)

Use this overload in cases where you need to specify advanced behavior.

[Visual Basic]
Overloads Public Shared Function CreateDelegate( _
   ByVal delegateType As Type, _
   ByVal mFunc As String, _
   ByVal ml As IKernelLink, _
   ByVal callsUnshare As Boolean, _
   ByVal wrapInNETBlock As Boolean _
) As Delegate
[C#]
public static Delegate CreateDelegate(
   Type delegateType,
   string mFunc,
   IKernelLink ml,
   bool callsUnshare,
   bool wrapInNETBlock
);

Parameters

delegateType
The type of the delegate to create.
mFunc
The Mathematica function to evaluate.
ml
The link to use.
callsUnshare
Whether the Mathematica function calls UnshareKernel or UnshareFrontEnd.
wrapInNETBlock
Whether to automatically wrap the call to Mathematica in NETBlock.

Return Value

The delegate object.

Remarks

Set callsUnhsare to true if your Mathematica function calls UnshareKernel or UnshareFrontEnd. Set wrapInNETBlock to false if you do not want the call to be automatically wrapped in NETBlock.

See Also

MathDelegate Class | Wolfram.NETLink Namespace | MathDelegate.CreateDelegate Overload List