Uredi

Deli z drugimi prek


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);
abstract member System.Collections.IDictionary.Remove : obj -> unit
override this.System.Collections.IDictionary.Remove : obj -> unit
Sub Remove (key As Object) Implements IDictionary.Remove

Parameters

key
Object

The key of the element to remove.

Implements

Exceptions

In all cases.

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