ReadOnlyDictionary<TKey,TValue>.IDictionary.Remove(Object) ReadOnlyDictionary<TKey,TValue>.IDictionary.Remove(Object) ReadOnlyDictionary<TKey,TValue>.IDictionary.Remove(Object) Method

Definition

Throws a NotSupportedException exception in all cases.

 virtual void System.Collections.IDictionary.Remove(System::Object ^ key) = System::Collections::IDictionary::Remove;
void IDictionary.Remove (object key);
Sub Remove (key As Object) Implements IDictionary.Remove

Parameters

key
Object Object Object

The key of the element to remove.

Implements

Exceptions

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyDictionary<TKey,TValue> instance is cast to an IDictionary interface. The IDictionary interface specifies that the Remove method should throw a NotSupportedException exception if the collection that implements the interface is read-only.

Applies to