Hashtable.Count Hashtable.Count Hashtable.Count Hashtable.Count Property

定义

获取包含在 Hashtable 中的键/值对的数目。Gets the number of key/value pairs contained in the Hashtable.

public:
 virtual property int Count { int get(); };
public virtual int Count { get; }
member this.Count : int
Public Overridable ReadOnly Property Count As Integer

属性值

包含在 Hashtable 中的键/值对的数目。The number of key/value pairs contained in the Hashtable.

实现

注解

检索此属性的值是 O(1) 操作。Retrieving the value of this property is an O(1) operation.

适用于