共用方式為


AccessKeyManager.IsKeyRegistered(Object, String) 方法

定義

表示指定的按鍵是否已註冊為指定範圍內的便捷鍵。

public:
 static bool IsKeyRegistered(System::Object ^ scope, System::String ^ key);
public static bool IsKeyRegistered (object scope, string key);
static member IsKeyRegistered : obj * string -> bool
Public Shared Function IsKeyRegistered (scope As Object, key As String) As Boolean

參數

scope
Object

要從中查詢 key 的呈現來源。

key
String

要查詢的按鍵。

傳回

如果已註冊按鍵,則為 true;否則為 false

適用於