ReadOnlyDictionary<TKey,TValue>.IDictionary.Clear ReadOnlyDictionary<TKey,TValue>.IDictionary.Clear 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 ();
Sub Clear () Implements IDictionary.Clear

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

Applies to