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

Definição

Gera uma exceção NotSupportedException em todos os 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

Implementações

Exceções

Em todos os casos.

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de ReadOnlyDictionary<TKey,TValue>.KeyCollection é convertida em uma interface de ICollection<T>. A ICollection<T> interface especifica que o Clear método deve gerar uma NotSupportedException exceção se a coleção que implementa a interface for somente leitura.

Aplica-se a