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

参数

返回

String

Platform::String

winrt::hstring

访问密钥,作为字符串。

适用于