ListSortDescriptionCollection::IList::Clear Method ()
.NET Framework (current version)
Removes all items from the collection.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | In all cases. |
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: