ListSortDescriptionCollection.IList.Clear Metoda

Definice

Odebere všechny položky z kolekce.

 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

Výjimky

Ve všech případech.

Poznámky

ListSortDescriptionCollection Protože třída implementuje System.Collections.IList rozhraní, musí mít metoduIList.Clear. Protože ListSortDescriptionCollection však třída představuje kolekci jen pro čtení, vymazání položek z kolekce je neplatná operace.

Platí pro