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>中找到 item,则为 true;否则,false

实现

适用于