ListSortDescriptionCollection.Item Property (Int32)

 

Gets or sets the specified ListSortDescription.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public ListSortDescription this[
	int index
] { get; set; }

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
Return to top
Show: