GraphPathSerializationDictionary.ContainsKey(String) 方法

定义

确定 System.object 是否包含具有指定键的元素。

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 中查找的键。

返回

Boolean

如果 System.object 包含具有键的元素,则为 True; 否则为。否则为 false。

实现

例外

key 为 null。

适用于