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

適用於