Mono Class Library: System.Collections.Generic.IDictionary<TKey,TValue> Overview | Members

System.Collections.Generic.IDictionary<TKey,TValue>.ContainsKey Method

Determines whether the current instance contains an entry with the specified key.

public bool ContainsKey (TKey key)

Parameters

key
The key to locate in the current instance.

Returns

true if the current instance contains an entry with the key; otherwise, false.

Remarks

Implementations can vary in how they determine equality of objects.

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0