.NET/Link API Version 1.7 USE FRAMES

IMathLink.GetStringArray Method 

Reads a list as a one-dimensional array of strings.

[Visual Basic]
Function GetStringArray() As String()
[C#]
string[] GetStringArray();

Remarks

The expression being read must be a list or other depth-1 expression of strings.

The expression does not need to have head List. In other words, it could be Foo["Abc", "Def"]. The information about the head is lost; if you need this information you can either use GetArray(Type leafType, int depth, out string[] heads), or read the expression as an Expr and examine it using the Expr methods.

Exceptions

Exception TypeCondition
MathLinkExceptionIf the waiting data cannot be read in this format, or on any other MathLink error.

See Also

IMathLink Interface | Wolfram.NETLink Namespace | GetArray