NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

String.Substring (Int32)

Converts a substring of this string to an array of characters.

[Visual Basic]
Overloads Public Function Substring( _
   ByVal startIndex As Integer _
) As String
[C#]
public string Substring(
   int startIndex
);
[C++]
public: String* Substring(
   int startIndex
);
[JScript]
public function Substring(
   startIndex : int
) : String;

Parameters

startIndex
The index of the character where the substring begins.

Return Value

The substring of characters from the index to the end of the string.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException If position where the index begins is less than zero or greater than the length of this string.

Remarks

The value of the startIndex parameter must be greater than or equal to zero and less than or equal to the length of this string.

If startIndex is equal to the length of this string, then the empty string is returned. String indices are 0-based.

See Also

String Class | String Members | System Namespace | String.Substring Overload List | Int32