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

要在集合中找出的物件。

傳回

item 存在於此集合則為 true;否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 ReadOnlyDictionary<TKey,TValue>.ValueCollection 執行個體轉換成 ICollection<T> 介面時,才能使用這個成員。

適用於