public static IKernelLink CreateKernelLink(
string[] argv
)
Public Shared Function CreateKernelLink (
argv As String()
) As IKernelLink
public:
static IKernelLink^ CreateKernelLink(
array<String^>^ argv
)
static member CreateKernelLink :
argv : string[] -> IKernelLink
You can use standard MathLink/WSTP specifications for establishing a link, for example -linkprotocol, -linkname, and -linkmode.
An example of a string array argument would be:string[] mlArgs = {"-linkmode", "listen", "-linkname", "foo"};
IKernelLink ml = MathLinkFactory.CreateKernelLink(mlArgs);
string[] mlArgs = {"-linkmode", "launch", "-linkname", "c:/path/to/my/Wolfram/WolframKernel.exe"};
IKernelLink ml = MathLinkFactory.CreateKernelLink(mlArgs);
MathLinkException | If the opening of the link fails. |