語言

ImmutableList<T>.Item[Int32] 屬性

定義

取得位於清單指定索引處的專案。

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

參數

index
Int32

要擷取之項目的索引。

屬性值

T

位於指定索引的元素。

實作

例外狀況

在 get 操作中, 為 index 負值或不小於 Count。

適用於