ReadOnlyCollection<T>.ICollection<T>.Clear Metoda

Definicja

Usuwa wszystkie elementy z elementu ICollection<T>. Ta implementacja NotSupportedExceptionzawsze zgłasza wyjątek .

 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

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