Share via


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

Definição

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

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

Parâmetros

item
TValue

O objeto a ser adicionado à coleção.

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>.ValueCollection é convertida em uma interface de ICollection<T>. A ICollection<T> 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