ListSortDescriptionCollection.IList.Clear ListSortDescriptionCollection.IList.Clear ListSortDescriptionCollection.IList.Clear Method

Definition

Removes all items from the collection.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
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