語言

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

定義

判斷集合是否包含特定值。

 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

要在收藏中找到的物件。

傳回

true 若 item 在集合中找到;否則, false。

實作

備註

此成員為明確介面成員實作。 它只能在實 ReadOnlyDictionary<TKey,TValue>.ValueCollection 例投射到 ICollection<T> 介面時使用。

適用於