Bridge

String..::..Split Method (array<Char>[]()[][], Int32)

Splits a string into a maximum number of substrings based on the characters in an array. You also specify the maximum number of substrings to return.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public string[] Split(
	char[] separator,
	int limit
)
<TemplateAttribute> _
Public Function Split ( _
	separator As Char(), _
	limit As Integer _
) As String()
[TemplateAttribute]
public:
array<String^>^ Split(
	array<wchar_t^>^ separator, 
	int^ limit
)

Parameters

separator
Type: array<System..::..Char>[]()[][]
A character array that delimits the substrings in this string, an empty array that contains no delimiters, or null.
limit
Type: System..::..Int32

Return Value

An array whose elements contain the substrings in this instance that are delimited by one or more characters in separator. For more information, see the Remarks section.

Exceptions


ExceptionCondition
System..::..ArgumentOutOfRangeExceptioncount is negative.