ListSortDescriptionCollection::IList::Add Method (Object^)
.NET Framework (current version)
Adds an item to the collection.
Assembly: System (in System.dll)
Parameters
- value
-
Type:
System::Object^
The item to add to the collection.
Implements
IList::Add(Object^)| Exception | Condition |
|---|---|
| InvalidOperationException | In all cases. |
Because the ListSortDescriptionCollection class implements the System.Collections::IList interface, it must have an IList::Add method. However, because the ListSortDescriptionCollection class represents a read-only collection, adding items to the collection is an invalid operation.
.NET Framework
Available since 2.0
Available since 2.0
Show: