String.Substring Method (Int32)
Retrieves a substring from the current String object. The substring starts at a specified index number, or character position, in the String object.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public string Substring (
intstartIndex
)
Parameters
- startIndex
The starting index number of a substring in the current String object.
Return Value
A String object equivalent to the substring that begins at the starting index number in the current String object.
-or-
The Empty field if the startIndex parameter is equal to the length of the current object.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.