set_Capacity()

StringBuilder::set_Capacity(int) method

Sets current capacity of string builder.

void System::Text::StringBuilder::set_Capacity(int capacity)

Arguments

ParameterTypeDescription
capacityintMaximum number of characters that can be contained in the memory allocated by the current instance.

See Also