System::Collections::Generic::List::set_Capacity 方法

List::set_Capacity method

设置列表容量。

void System::Collections::Generic::List<T>::set_Capacity(int capacity)
ParameterType描述
容量int要设置的容量(不能小于当前大小)。

另见