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

System.Collections.IDictionary.Remove Method

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

public void Remove (object key)

Parameters

key
The key of the entry to remove.

Exceptions

TypeReason
ArgumentNullExceptionkey is null.
NotSupportedExceptionThe current instance is read-only or has a fixed size.

Remarks

Operation

If key is not found in the current instance, no exception is thrown and the current instance remains unchanged.

Requirements

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