Click or drag to resize
ArrayListCapacity Property
Gets or sets the number of elements that the ArrayList can contain.

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

Return Value

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