RouteValueDictionary.ContainsKey(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷字典是否包含指定的鍵。
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
關鍵是要在字典中找到。
傳回
true如果字典包含具有指定鍵的元素;否則,。 false