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

Definición

Produce una NotSupportedException excepción en todos los 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

Objeto que se va a agregar a la colección.

Implementaciones

Excepciones

En todos los casos.

Comentarios

Este miembro es una implementación explícita de miembro de interfaz. Solo se puede usar cuando la ReadOnlyDictionary<TKey,TValue>.KeyCollection instancia se convierte en una ICollection<T> interfaz. La ICollection<T> interfaz especifica que el Add método debe producir una NotSupportedException excepción si la colección que implementa la interfaz es de solo lectura.

Se aplica a