StringBuilderToString Method (Int32, Int32) |
Converts the value of a substring of this instance to a
String.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public string ToString(
int startIndex,
int length
)
Parameters
- startIndex
- Type: SystemInt32
The starting position of the substring in this instance. - length
- Type: SystemInt32
The length of the substring.
Return Value
Type:
StringA string whose value is the same as the specified substring of this instance.
Exceptions 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. |
See Also