ReadOnlyCollection<T>.ICollection<T>.Add(T) Metoda

Definicja

Dodaje element do elementu ICollection<T>. Ta implementacja NotSupportedExceptionzawsze zgłasza wyjątek .

 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

Parametry

value
T

Obiekt, który ma zostać dodany do obiektu ICollection<T>.

Implementuje

Wyjątki

Zawsze generowany.

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ReadOnlyCollection<T> wystąpienie jest rzutowe do interfejsu ICollection<T> .

Dotyczy