ArraySegment<T>.Item[Int32] 屬性

定義

在指定的索引位置上取得或設定項目。

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

參數

index
Int32

要取得或設定的以零為起始元素索引。

屬性值

T

在指定索引上的項目。

實作

例外狀況

index 不是 ArraySegment<T> 中的有效索引。

適用於