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

Definição

Gera uma NotSupportedException exceção em todos os casos.

 virtual void System.Collections.Generic.ICollection<TValue>.Clear() = System::Collections::Generic::ICollection<TValue>::Clear;
void ICollection<TValue>.Clear();
abstract member System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
override this.System.Collections.Generic.ICollection<TValue>.Clear : unit -> unit
Sub Clear () Implements ICollection(Of TValue).Clear

Implementações

Exceções

Em todos os casos.

Comentários

Esse membro é uma implementação de membro de interface explícita. Ele só pode ser usado quando a ReadOnlyDictionary<TKey,TValue>.ValueCollection instância é convertida em uma ICollection<T> interface. 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