語言

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

實作

適用於