ImmutableArray<T>.ItemRef(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在唯讀清單中,獲得指定元素 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 元素的唯讀參考。