Ensures that the capacity of this instance of System.Text.StringBuilder is at least the specified value.
The new capacity of this instance.
Type Reason ArgumentOutOfRangeException capacity is less zero.
If the current capacity is less than the capacity parameter, memory for this instance is reallocated to hold at least capacity number of characters; otherwise, no memory is changed.