ArraySegment<T>.IReadOnlyList<T>.Item[Int32] 屬性

定義

取得位於陣列區段之指定索引位置的項目。

property T System::Collections::Generic::IReadOnlyList<T>::Item[int] { T get(int index); };
T System.Collections.Generic.IReadOnlyList<T>.Item[int index] { get; }
member this.System.Collections.Generic.IReadOnlyList<T>.Item(int) : 'T
 ReadOnly Property Item(index As Integer) As T Implements IReadOnlyList(Of T).Item

參數

index
Int32

要取得之項目的以零為起始的索引。

屬性值

T

在指定索引上的項目。

實作

例外狀況

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

基礎陣列是 null

已設定該屬性。

備註

這個成員是明確介面成員實作, 只有在 ArraySegment<T> 執行個體轉換成 IReadOnlyList<T> 介面時,才能使用這個成員。

適用於