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!

StringBuilder.ToString (Int32, Int32)

Converts a substring of the current StringBuilder to a String.

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

Parameters

startIndex
the position at which the substring begins.
length
the length of the substring.

Return Value

A new String representing the characters in the current StringBuilder beginning at startIndex and ending at startIndex + length- 1.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException if startIndex and length don't specify a valid range.

See Also

StringBuilder Class | StringBuilder Members | System.Text Namespace | StringBuilder.ToString Overload List