MathDelegateCreateDelegate(Type, String, IKernelLink, Boolean, Boolean) Method
Use this overload in cases where you need to specify advanced behavior.
Namespace: Wolfram.NETLinkAssembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
public static Delegate CreateDelegate(
Type delegateType,
string mFunc,
IKernelLink ml,
bool callsUnshare,
bool wrapInNETBlock
)
Public Shared Function CreateDelegate (
delegateType As Type,
mFunc As String,
ml As IKernelLink,
callsUnshare As Boolean,
wrapInNETBlock As Boolean
) As Delegate
public:
static Delegate^ CreateDelegate(
Type^ delegateType,
String^ mFunc,
IKernelLink^ ml,
bool callsUnshare,
bool wrapInNETBlock
)
static member CreateDelegate :
delegateType : Type *
mFunc : string *
ml : IKernelLink *
callsUnshare : bool *
wrapInNETBlock : bool -> Delegate
- delegateType Type
- The type of the delegate to create.
- mFunc String
- The Wolfram Language function to evaluate.
- ml IKernelLink
- The link to use.
- callsUnshare Boolean
- Whether the Wolfram Language function calls UnshareKernel or UnshareFrontEnd.
- wrapInNETBlock Boolean
- Whether to automatically wrap the call to Wolfram Language in NETBlock.
DelegateThe delegate object.
Set callsUnhsare to true if your Wolfram Language function calls UnshareKernel or UnshareFrontEnd.
Set wrapInNETBlock to false if you do not want the call to be automatically wrapped in NETBlock.