GraphPathSerializationDictionary.ContainsKey(String) 方法

定义

确定 System.object 是否包含具有指定键的元素。Determines whether the System.Collections.Generic.IDictionary contains an element with the specified key.

public:
 virtual bool ContainsKey(System::String ^ key);
public bool ContainsKey (string key);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (key As String) As Boolean

参数

key
String

要在 System.object 中查找的键。The key to locate in the System.Collections.Generic.IDictionary.

返回

Boolean

如果 System.object 包含具有键的元素,则为 True; 否则为。否则为 false。True if the System.Collections.Generic.IDictionary contains an element with the key; otherwise, false.

实现

例外

key 为 null。key is null.

适用于