共用方式為


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

定義

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

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

參數

key
TKey

傳回

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

實作

適用於