Mono Class Library: System.Collections.IDictionary Overview | Members

System.Collections.IDictionary.Contains Method

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

public bool Contains (object key)

Parameters

key
The key to locate in the IDictionary.

Returns

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

Exceptions

TypeReason
ArgumentNullExceptionkey is null.

Remarks

Operation
As described above.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0