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

Definition

Adds an item to the ICollection<T>. This implementation always throws NotSupportedException.

 virtual void System.Collections.Generic.ICollection<T>.Add(T value) = System::Collections::Generic::ICollection<T>::Add;
void ICollection<T>.Add (T value);
Sub Add (value As T) Implements ICollection(Of T).Add

Parameters

value
T T T

The object to add to the ICollection<T>.

Implements

Exceptions

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyCollection<T> instance is cast to an ICollection<T> interface.

Applies to