ExpandoObject.IDictionary<String,Object>.ContainsKey(String) 方法

定义

确定字典是否包含指定的键。Determines whether the dictionary contains the specified key.

 virtual bool System.Collections.Generic.IDictionary<string,object>.ContainsKey(System::String ^ key) = System::Collections::Generic::IDictionary<System::String ^, System::Object ^>::ContainsKey;
bool IDictionary<string,object>.ContainsKey (string key);
Function ContainsKey (key As String) As Boolean Implements IDictionary(Of String, Object).ContainsKey

参数

key
String

要在字典中查找的键。The key to locate in the dictionary.

返回

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

实现

适用于