ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add Metod

Definition

Genererar ett NotSupportedException undantag i alla fall.

 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

Parametrar

item
TValue

Objektet som ska läggas till i samlingen.

Implementeringar

Undantag

I samtliga fall.

Kommentarer

Den här medlemmen är en explicit implementering av gränssnittsmedlemmar. Den kan endast användas när instansen ReadOnlyDictionary<TKey,TValue>.ValueCollection skickas till ett ICollection<T> gränssnitt. Gränssnittet ICollection<T> anger att Add metoden ska utlösa ett NotSupportedException undantag om samlingen som implementerar gränssnittet är skrivskyddad.

Gäller för