StringBuilder Constructor (String, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the StringBuilder class using the specified string and capacity.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.String
The string used to initialize the value of the instance. If value is Nothing, the new StringBuilder will contain the empty string (that is, it contains Empty).
- capacity
- Type: System.Int32
The suggested starting size of the StringBuilder.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | capacity is less than zero. |
Show: