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 值。

返回

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

适用于