संपादित करें

इसके माध्यम से साझा किया गया


ReadOnlyDictionary<TKey,TValue>.IDictionary.Clear Method

Definition

Throws a NotSupportedException exception in all cases.

 virtual void System.Collections.IDictionary.Clear() = System::Collections::IDictionary::Clear;
void IDictionary.Clear ();
abstract member System.Collections.IDictionary.Clear : unit -> unit
override this.System.Collections.IDictionary.Clear : unit -> unit
Sub Clear () Implements IDictionary.Clear

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 Clear method should throw a NotSupportedException exception if the collection that implements the interface is read-only.

Applies to