ListSortDescriptionCollection::Item Property (Int32)
.NET Framework (current version)
Gets or sets the specified ListSortDescription.
Assembly: System (in System.dll)
public: property ListSortDescription^ default[ int index ] { ListSortDescription^ get(int index); void set(int index, ListSortDescription^ value); }
Parameters
- index
-
Type:
System::Int32
The zero-based index of the ListSortDescription to get or set in the collection.
Property Value
Type: System.ComponentModel::ListSortDescription^The ListSortDescription with the specified index.
| Exception | Condition |
|---|---|
| InvalidOperationException | An item is set in the ListSortDescriptionCollection, which is read-only. |
The ListSortDescriptionCollection is read-only once constructed and will throw an InvalidOperationException if you attempt to set an item.
.NET Framework
Available since 2.0
Available since 2.0
Show: