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 Constructor (Int32, Int32)

Initializes a new, empty instance of the StringBuilder class that starts with a specified capacity and can grow to a specified maximum.

[Visual Basic]
Overloads Public Sub New( _
   ByVal capacity As Integer, _
   ByVal maxCapacity As Integer _
)
[C#]
public StringBuilder(
   int capacity,
   int maxCapacity
);
[C++]
public: StringBuilder(
   int capacity,
   int maxCapacity
);
[JScript]
public function StringBuilder(
   capacity : int,
   maxCapacity : int
);

Parameters

capacity
The suggested starting size of the StringBuilder. This size can increase as more characters are added.
maxCapacity
The maximum number of characters the current string may contain.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException maxCapacity is less than 1, capacity is less than 0, or capacity is greater than maxCapacity.

See Also

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