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

定义

确定不可变字典是否包含具有指定值的元素。Determines whether the immutable dictionary contains an element with the specified value.

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

要查找的值。The value to locate. 对于引用类型,该值可以为 nullThe value can be null for reference types.

返回

如果字典包含具有指定值的元素,则为 true;否则为 falsetrue if the dictionary contains an element with the specified value; otherwise, false.

适用于