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

Definition

Throws a NotSupportedException exception in all cases.

 virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear ();
Sub Clear () Implements ICollection(Of TValue).Clear

Implements

Exceptions

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyDictionary<TKey,TValue>.ValueCollection 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