StringSplitOptions Enumeration
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Specifies whether methods that split delimited substrings include or omit empty substrings from the returned array.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll)
The String::Split(array<Char>, StringSplitOptions) and String::Split(array<String>, StringSplitOptions) methods return an array of the substrings in a given string that are delimited by specified characters or strings. Adjacent delimiters yield an array element that contains an empty string (""). The values of the StringSplitOptions enumeration specify whether an array element that contains an empty string is included in the returned array.
Specify the StringSplitOptions::None value to invoke the default behavior of the Split method, which is to return an array of both empty substrings and substrings that are not empty. Specify the StringSplitOptions::RemoveEmptyEntries value to cause the Split method to return an array consisting solely of substrings that are not empty.