SynchronizedReadOnlyCollection<T>.ICollection<T>.Add(T) Metod

Definition

Kastar en NotSupportedException om anropad.

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

Parametrar

value
T

Elementet som ska läggas till i samlingen.

Implementeringar

Undantag

Det går inte att ange objekt i en skrivskyddad samling.

Kommentarer

Det går inte att lägga till objekt i en skrivskyddad samling.

Gäller för