IImmutableSet<T>.Contains(T) IImmutableSet<T>.Contains(T) IImmutableSet<T>.Contains(T) IImmutableSet<T>.Contains(T) Method

定義

判斷這個不可變的資料集是否包含指定的項目。Determines whether this immutable set contains a specified element.

public:
 bool Contains(T value);
public bool Contains (T value);
abstract member Contains : 'T -> bool
Public Function Contains (value As T) As Boolean

參數

value

要在資料集中尋找的項目。The element to locate in the set.

傳回

如果資料集包含指定的值,則為 true,否則為 falsetrue if the set contains the specified value; otherwise, false.

適用於