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

定义

确定字典是否包含指定的键。

 virtual bool System.Collections.Generic.IDictionary<System.String,System.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<System.String,System.Object>.ContainsKey : string -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Object>.ContainsKey : string -> bool
Function ContainsKey (key As String) As Boolean Implements IDictionary(Of String, Object).ContainsKey

参数

key
String

要在字典中查找的键。

返回

如果字典包含具有指定键的元素,则为 true;否则为 false

实现

适用于