ReadOnlyCollection<T>.IList.Clear Metoda

Definicja

Usuwa wszystkie elementy z elementu IList. Ta implementacja zawsze zgłasza błąd NotSupportedException.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.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 rzutowanie do interfejsu IList .

Dotyczy