Bewerken

Delen via


IHash<TKey,TValue>.count(TKey) Method

Definition

Finds the number of elements that match a specified key.

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

Parameters

_Keyval
TKey

The key value for which to search.

Returns

The number of elements in the controlled sequence that have the same key as _Keyval. You use it to determine the number of elements currently in the controlled sequence that match a specified key.

Remarks

For more information, see hash_map::count (STL/CLR), hash_multimap::count (STL/CLR), hash_set::count (STL/CLR), and hash_multiset::count (STL/CLR).

Applies to