ListSortDescriptionCollection.IList.Clear Metoda

Definicja

Usuwa wszystkie elementy z kolekcji.

 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

We wszystkich przypadkach.

Uwagi

ListSortDescriptionCollection Ponieważ klasa implementuje System.Collections.IList interfejs, musi mieć metodęIList.Clear. Jednak ponieważ ListSortDescriptionCollection klasa reprezentuje kolekcję tylko do odczytu, wyczyszczenie elementów z kolekcji jest nieprawidłową operacją.

Dotyczy