Click or drag to resize
StringBuilderToString Method (Int32, Int32)
Converts the value of a substring of this instance to a String.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: String
A string whose value is the same as the specified substring of this instance.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstartIndex or length is less than zero.-or- The sum of startIndex and length is greater than the length of the current instance.
See Also