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

Definition

Throws a NotSupportedException if called.

 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 element to be added to the collection.

Implements

Exceptions

Items cannot be set in a read-only collection.

Remarks

Items cannot be added to a read-only collection.

Applies to