ImmutableDictionary<TKey,TValue>.ContainsKey(TKey) 方法

定义

确定不可变字典是否包含具有指定键的元素。Determines whether the immutable dictionary contains an element with the specified key.

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

参数

key
TKey

要定位的键。The key to locate.

返回

如果不可变字典包含具有指定键的元素,则为 true;否则为 falsetrue if the immutable dictionary contains an element with the specified key; otherwise, false.

实现

适用于