共用方式為


OrderedDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Contains 方法

定義

判斷 ICollection<T> 是否包含特定值。

 virtual bool System.Collections.Generic.ICollection<TValue>.Contains(TValue item) = System::Collections::Generic::ICollection<TValue>::Contains;
bool ICollection<TValue>.Contains (TValue item);
abstract member System.Collections.Generic.ICollection<TValue>.Contains : 'Value -> bool
override this.System.Collections.Generic.ICollection<TValue>.Contains : 'Value -> bool
Function Contains (item As TValue) As Boolean Implements ICollection(Of TValue).Contains

參數

item
TValue

ICollection<T>中尋找的物件。

傳回

如果在 ICollection<T>中找到 itemtrue;否則,false

實作

適用於