Breyta

Deila með


ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Clear Method

Definition

Throws a NotSupportedException exception in all cases.

 virtual void System.Collections.Generic.ICollection<TKey>.Clear() = System::Collections::Generic::ICollection<TKey>::Clear;
void ICollection<TKey>.Clear ();
abstract member System.Collections.Generic.ICollection<TKey>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TKey>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TKey).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>.KeyCollection instance is cast to an ICollection<T> interface. The ICollection<T> interface specifies that the Clear method should throw a NotSupportedException exception if the collection that implements the interface is read-only.

Applies to