Click or drag to resize
ListTCapacity Property
Gets or sets the total number of elements the internal data structure can hold without resizing.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int Capacity { get; set; }

Return Value

Type: Int32
The number of elements that the ListT can contain before resizing is required.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionCapacity is set to a value that is less than Count.
OutOfMemoryExceptionThere is not enough memory available on the system.
See Also