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

Definição

Faz NotSupportedException exceção em todos os casos.

 virtual void System.Collections.Generic.ICollection<TKey>.Add(TKey item) = System::Collections::Generic::ICollection<TKey>::Add;
void ICollection<TKey>.Add(TKey item);
abstract member System.Collections.Generic.ICollection<TKey>.Add : 'Key -> unit
override this.System.Collections.Generic.ICollection<TKey>.Add : 'Key -> unit
Sub Add (item As TKey) Implements ICollection(Of TKey).Add

Parâmetros

item
TKey

O objeto a acrescentar à coleção.

Implementações

Exceções

Em todos os casos.

Observações

Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a ReadOnlyDictionary<TKey,TValue>.KeyCollection instância é transmitida para uma ICollection<T> interface. A ICollection<T> interface especifica que o Add método deve lançar uma NotSupportedException exceção se a coleção que implementa a interface for apenas de leitura.

Aplica-se a