語言

ReadOnlyDictionary<TKey,TValue>.KeyCollection.Contains(TKey) 方法

定義

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

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

參數

item
TKey

要定位於 ICollection<T>的物件。

傳回

true 若 item 在 中; ICollection<T>否則, false。

實作

適用於