System.Collections.Hashtable.Count Property

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

Syntax

public virtual int Count { get; }

Value

A int that specifies the number of key-and-value pairs contained in the current instance.

Remarks

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

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0