SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Add Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Lägger till ett objekt i ICollection<T>. Den här implementeringen genererar alltid en 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
Parametrar
- item
- TKey
Objektet som ska läggas till i ICollection<T>.
Implementeringar
Undantag
Kastas alltid; samlingen är skrivskyddad.