語言

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> 介面時使用。

適用於