Share via


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)

Syntax

'Declaration
Public ReadOnly Property Count As Integer
public int Count { get; }
public:
virtual property int Count {
    int get () sealed;
}
abstract Count : int with get
override Count : int with get
final function get Count () : int

Property Value

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

Implements

ICollection. . :: . .Count

Remarks

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

.NET Framework Security

See Also

Reference

Hashtable Class

System.Collections Namespace