Dictionary<TKey,TValue>.ValueCollection.Count 属性

定义

获取 Dictionary<TKey,TValue>.ValueCollection 中包含的元素数。

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

属性值

Dictionary<TKey,TValue>.ValueCollection 中包含的元素数。

实现

注解

检索此属性的值的运算复杂度为 O(1)。

适用于