Upraviť

Zdieľať cez


ListSortDescriptionCollection.IList.Clear Method

Definition

Removes all items from the collection.

 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

Implements

Exceptions

Remarks

Because the ListSortDescriptionCollection class implements the System.Collections.IList interface, it must have a IList.Clear method. However, because the ListSortDescriptionCollection class represents a read-only collection, clearing items from the collection is an invalid operation.

Applies to