共用方式為


AutomationProperties.GetAccessKey(DependencyObject) 方法

定義

取得指定DependencyObjectAutomationProperties.AccessKey附加屬性的值。

public:
 static Platform::String ^ GetAccessKey(DependencyObject ^ element);
 static winrt::hstring GetAccessKey(DependencyObject const& element);
public static string GetAccessKey(DependencyObject element);
function getAccessKey(element)
Public Shared Function GetAccessKey (element As DependencyObject) As String

參數

element
DependencyObject

要檢查的 DependencyObject

傳回

String

Platform::String

winrt::hstring

便捷鍵,以字串表示。

適用於