ReadOnlyDictionary<TKey,TValue>.IDictionary.Add(Object, Object) Método

Definição

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

 virtual void System.Collections.IDictionary.Add(System::Object ^ key, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add(object key, object value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (key As Object, value As Object) Implements IDictionary.Add

Parâmetros

key
Object

A chave do elemento a ser adicionado.

value
Object

O valor do elemento a ser adicionado.

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 Add método deve gerar uma NotSupportedException exceção se a coleção que implementa a interface for somente leitura.

Aplica-se a