set_Capacity()
CollectionBase::set_Capacity(int32_t) method
Sets the number of elements that the collection can contain.
void System::Collections::CollectionBase<T>::set_Capacity(int32_t value)
Arguments
| Parameter | Type | Description |
|---|---|---|
| value | int32_t | The value to set. |
Exceptions
| Exception | Description |
|---|---|
| ArgumentOutOfRangeException | The value is set to a value that is less than CollectionBase::get_Count. |
| OutOfMemoryException | There is not enough memory available on the system. |
See Also
- Class CollectionBase
- Namespace System::Collections
- Library Aspose.Slides