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

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

Removes the entry with the specified key from the current instance.

public bool Remove (TKey key)

Parameters

key
The key of the entry to remove.

Returns

true if the element is successfully removed; otherwise, false.
Note:

This method also returns false if key was not found.

Exceptions

TypeReason
NotSupportedExceptionThe current instance is read-only.

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