ListSortDescriptionCollection.Item[Int32] 屬性

定義

取得或設定指定的 ListSortDescription

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

參數

index
Int32

集合中 to get 或 set 的 ListSortDescription 零基索引。

屬性值

ListSortDescription 索引為指定。

例外狀況

一個項目被設定在 ListSortDescriptionCollection中,且為唯讀。

備註

一旦建構完成,該ListSortDescriptionCollection物件是唯讀的,當你嘗試設定項目時會拋出 。InvalidOperationException

適用於