| Visual Basic (Declaration) | |
|---|---|
Public Property Capacity As Integer | |
| C# | |
|---|---|
public int Capacity {get; set;} | |
Property Value
The number of elements that the System.Collections.CollectionBase can contain.| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | System.Collections.CollectionBase.Capacity is set to a value that is less than System.Collections.CollectionBase.Count. |
| System.OutOfMemoryException | There is not enough memory available on the system. |