ImmutableArray<T>.Builder.ItemRef(Int32) 方法

定義

取得位於指定索引元素的唯讀參考。

public:
 T& ^ ItemRef(int index);
public ref readonly T ItemRef (int index);
member this.ItemRef : int -> 'T
Public Function ItemRef (index As Integer) As T

參數

index
Int32

項目索引。

傳回

T

位於指定索引元素的唯讀參考。

例外狀況

index 大於或等於陣列計數。

適用於