Count Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the number of key/value pairs contained in the Hashtable.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

public int Count { get; }

Property Value

Type: System..::..Int32
The number of key/value pairs contained in the Hashtable.

Implements

ICollection..::..Count

Retrieving the value of this property is an O(1) operation.

Show: