语言

ITree<TKey,TValue>.count(TKey) 方法

定义

查找与指定键匹配的元素数。

public:
 int count(TKey _Keyval);
public int count(TKey _Keyval);
abstract member count : 'Key -> int
Public Function count (_Keyval As TKey) As Integer

参数

_Keyval
TKey

要搜索的键值。

返回

受控序列中具有相同键 _Keyval的元素数。 用于确定受控序列中当前与指定键匹配的元素数。

注解

有关详细信息,请参阅 hash_map::count(STL/CLR)、hash_multimap::count(STL/CLR)、hash_set::count(STL/CLR)和 hash_multiset::count(STL/CLR)。

适用于