ListSortDescriptionCollection::IList::Insert Method (Int32, Object^)
.NET Framework (current version)
Inserts an item into the collection at a specified index.
Assembly: System (in System.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index of the ListSortDescription to get or set in the collection
- value
-
Type:
System::Object^
The item to insert into the collection.
Implements
IList::Insert(Int32, Object^)| Exception | Condition |
|---|---|
| InvalidOperationException | In all cases. |
Because the ListSortDescriptionCollection class implements the System.Collections::IList interface, it must have a IList::Insert method. However, because the ListSortDescriptionCollection class represents a read-only collection, inserting items into the collection is an invalid operation.
.NET Framework
Available since 2.0
Available since 2.0
Show: