public static IKernelLink CreateKernelLink(
string cmdLine
)
Public Shared Function CreateKernelLink (
cmdLine As String
) As IKernelLink
public:
static IKernelLink^ CreateKernelLink(
String^ cmdLine
)
static member CreateKernelLink :
cmdLine : string -> IKernelLink
You can use standard MathLink/WSTP specifications for establishing a link, for example the -linkprotocol, -linkname, and -linkmode switches.
An example of a string 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. |