ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Clear Método

Definición

Se produce una excepción NotSupportedException en todos los casos.

 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

Implementaciones

Excepciones

En todos los casos.

Comentarios

Este miembro es una implementación explícita de un miembro de interfaz. Solo se puede utilizar cuando la instancia de ReadOnlyDictionary<TKey,TValue>.KeyCollection se convierte en una interfaz ICollection<T>. La ICollection<T> interfaz especifica que el Clear método debe producir una NotSupportedException excepción si la colección que implementa la interfaz es de solo lectura.

Se aplica a