StringBuilder.ToString Method (Int32, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the value of a substring of this instance to a String.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Function ToString ( _ startIndex As Integer, _ length As Integer _ ) As String
Parameters
- startIndex
- Type: System.Int32
The starting position of the substring in this instance.
- length
- Type: System.Int32
The length of the substring.
Return Value
Type: System.StringA string whose value is the same as the specified substring of this instance.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | startIndex or length is less than zero. -or- The sum of startIndex and length is greater than the length of the current instance. |
Show: