Int32Collection.Item[Int32] 屬性

定義

取得或設定在指定索引位置的 Int32

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

參數

index
Int32

要取得或設定的 Int32 的以零起始的索引。

屬性值

指定之索引處的 Int32

實作

例外狀況

index 小於零。

-或-

index 等於或大於 Count

適用於