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

定义

确定此不可变排序映射是否包含指定的键。Determines whether this immutable sorted map contains 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 the specified key; otherwise, false.

实现

适用于