语言

OrderedDictionary<TKey,TValue>.ContainsValue(TValue) 方法

定义

确定 OrderedDictionary<TKey,TValue> 是否包含特定值。

public:
 bool ContainsValue(TValue value);
public bool ContainsValue(TValue value);
member this.ContainsValue : 'Value -> bool
Public Function ContainsValue (value As TValue) As Boolean

参数

value
TValue

要在 . 中 OrderedDictionary<TKey,TValue>查找的值。 该值可以 null 用于引用类型。

返回

true 如果包含具有指定值的元素,则为 OrderedDictionary<TKey,TValue> ;否则为 false。

适用于