SortedSet<T>.Contains(T) 方法

定義

判斷資料集是否包含特定項目。Determines whether the set contains a specific element.

public:
 virtual bool Contains(T item);
public virtual bool Contains (T item);
abstract member Contains : 'T -> bool
override this.Contains : 'T -> bool
Public Overridable Function Contains (item As T) As Boolean

參數

item
T

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

傳回

Boolean

如果資料集包含 item,則為 true,否則為 falsetrue if the set contains item; otherwise, false.

實作

備註

這個方法是一項作業 O(log n)This method is an O(log n) operation.

適用於