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);
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

Parameters

value
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