MathLinkFactoryCreateKernelLink(IMathLink) Method

Creates an IKernelLink from an IMathLink.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public static IKernelLink CreateKernelLink(
	IMathLink ml
)

Parameters

ml  IMathLink
The IMathLink to "wrap".

Return Value

IKernelLink
The created link.

Remarks

You can think of IKernelLink as a "decorator" for IMathLink. It builds on top of IMathLink by providing extra capabilities. If you have an IMathLink object, you can use this method to construct an IKernelLink implementation out of it.

Very few programmers will ever use this method. It is intended mainly for developers who are creating their own IKernelLink implementations. They only need to write the functionality of an IMathLink, and then they can use this method to get the extra features of an IKernelLink for free.

Exceptions

MathLinkExceptionIf the opening of the link fails.

See Also