ImmutableArray<T>.ItemRef(Int32) 方法

定義

取得唯讀清單中在指定 index 處元素的唯讀參考。

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 處元素的唯讀參考。

適用於