Bewerken

Delen via


SynchronizedReadOnlyCollection<T>.ICollection<T>.Clear Method

Definition

Throws a NotSupportedException if called.

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

Implements

Exceptions

Items cannot be cleared from a read-only collection.

Remarks

Items cannot be cleared from a read-only collection.

Applies to