ReadOnlyDictionary<TKey,TValue>.IDictionary.Clear Método

Definição

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

 virtual void System.Collections.IDictionary.Clear() = System::Collections::IDictionary::Clear;
void IDictionary.Clear();
abstract member System.Collections.IDictionary.Clear : unit -> unit
override this.System.Collections.IDictionary.Clear : unit -> unit
Sub Clear () Implements IDictionary.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> instância é convertida em uma IDictionary interface. A IDictionary 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