Gets or sets the number of elements that the CollectionBase can contain.
[Visual Basic]
Public Property Capacity As Integer[C#]
public int Capacity {get; set;}[JScript]
public function get,set Capacity : intThe number of elements that the CollectionBase can contain.
| Exception | Description |
|---|---|
| ArgumentOutOfRangeException | Capacity is set to a value that is less than Count. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
DirItemsCollection Class | DirItemsCollection Members
© WeOnlyDo Software. All Rights Reserved.