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

定义

返回对该值的只读引用,该值与提供的 key 相关联。Returns a read-only reference to the value associated with the provided 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 不存在。The key is not present.

适用于