This documentation is archived and is not being maintained.

ReadOnlyDictionary<TKey, TValue>::ContainsKey Method

Gets a flag that indicates that the specified key occurs in the dictionary.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public:
virtual bool ContainsKey(
	TKey key
) sealed

Parameters

key
Type: TKey

The key to search for.

Return Value

Type: System::Boolean
True if the dictionary contains the specified key; otherwise, false.

Implements

IDictionary<TKey, TValue>::ContainsKey(TKey)

Show: