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

Initializes a new instance of the StringBuilder class from the specified string with the specified capacity.

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

Parameters

value
The string used to initialize the new instance. If value is a null reference (in Visual Basic Nothing), the new StringBuilder will contain the empty string (that is, it contains Empty).
capacity
The suggested starting size of the StringBuilder. This size can increase as more characters are added.

Remarks

The maximum number of characters value may contain is set by capacity.

See Also

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