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);
abstract member System.Collections.Generic.IDictionary<string,object>.ContainsKey : string -> bool
override this.System.Collections.Generic.IDictionary<string,object>.ContainsKey : string -> bool
Function ContainsKey (key As String) As Boolean Implements IDictionary(Of String, Object).ContainsKey
参数
- key
- String
要在字典中查找的键。The key to locate in the dictionary.
返回
如果字典包含具有指定键的元素,则为 true;否则为 false。true if the dictionary contains an element that has the specified key; otherwise, false.