語言

ImmutableSortedDictionary<TKey,TValue>.ValueRef(TKey) 方法

定義

回傳與所提供 key值相關聯的唯讀參考。

public:
 TValue& ^ ValueRef(TKey key);
public ref readonly TValue ValueRef(TKey key);
member this.ValueRef : 'Key -> 'Value
Public Function ValueRef (key As TKey) As TValue

參數

key
TKey

要查閱條目鑰匙。

傳回

TValue

一個只讀的參考,指向與所提供的 key值相關聯。

例外狀況

不 key 存在。

適用於