.NET/Link API Version 1.7 USE FRAMES

MathLinkFactory.CreateMathLink Method (String)

Creates a link based on MathLink parameters supplied as a single string.

[Visual Basic]
Overloads Public Shared Function CreateMathLink( _
   ByVal cmdLine As String _
) As IMathLink
[C#]
public static IMathLink CreateMathLink(
   string cmdLine
);

Parameters

cmdLine
The string providing MathLink arguments.

Return Value

The created link.

Remarks

Use this method if you want to establish a listen/connect link to a program other than a Mathematica kernel.

You can use standard MathLink specifications for establishing a link, as documented in the Mathematica book or other MathLink documentation. For example, the -linkprotocol, -linkname, and -linkmode switches.

An example of a string argument would be:
string mlArgs = "-linkmode listen -linkname foo";
IMathLink ml = MathLinkFactory.CreateMathlLink(mlArgs);
Most programmers will want to use the CreateKernelLink method instead.

Exceptions

Exception Type Condition
MathLinkException If the opening of the link fails.

See Also

MathLinkFactory Class | Wolfram.NETLink Namespace | MathLinkFactory.CreateMathLink Overload List | CreateKernelLink