IDictionary::Remove Method
Silverlight
Removes the element with the specified key from the IDictionary object.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Parameters
- key
- Type: System::Object
The key of the element to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is nullptr. |
| NotSupportedException | The IDictionary object is read-only. -or- The IDictionary has a fixed size. |
If the IDictionary object does not contain an element with the specified key, the IDictionary remains unchanged. No exception is thrown.
The following code example demonstrates how to implement the Remove method. This code example is part of a larger example provided for the IDictionary class.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: