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

Definición

Agrega un elemento al ICollection<T>. Esta implementación siempre produce NotSupportedException.

 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 .ICollection<T>

Implementaciones

Excepciones

Siempre se produce.

Se aplica a

Consulte también