ListSortDescriptionCollection.Item[Int32] Właściwość

Definicja

Pobiera lub ustawia określony ListSortDescriptionelement .

public:
 property System::ComponentModel::ListSortDescription ^ default[int] { System::ComponentModel::ListSortDescription ^ get(int index); void set(int index, System::ComponentModel::ListSortDescription ^ value); };
public System.ComponentModel.ListSortDescription this[int index] { get; set; }
public System.ComponentModel.ListSortDescription? this[int index] { get; set; }
member this.Item(int) : System.ComponentModel.ListSortDescription with get, set
Default Public Property Item(index As Integer) As ListSortDescription

Parametry

index
Int32

Indeks zerowy ListSortDescription klasy , który ma być pobierany lub ustawiany w kolekcji.

Wartość właściwości

Element ListSortDescription z określonym indeksem.

Wyjątki

Element jest ustawiany w obiekcie ListSortDescriptionCollection, który jest tylko do odczytu.

Uwagi

Element ListSortDescriptionCollection jest tylko do odczytu po utworzeniu i zgłosi błąd InvalidOperationException , jeśli spróbujesz ustawić element.

Dotyczy