ImmutableSortedDictionary<TKey,TValue>.Builder.ContainsValue(TValue) ImmutableSortedDictionary<TKey,TValue>.Builder.ContainsValue(TValue) ImmutableSortedDictionary<TKey,TValue>.Builder.ContainsValue(TValue) ImmutableSortedDictionary<TKey,TValue>.Builder.ContainsValue(TValue) Method

定义

确定不可变排序字典是否包含具有指定值的元素。Determines whether the immutable sorted 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 TValue TValue TValue

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

返回

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

适用于