AutomationProperties.SetAccessKey(DependencyObject, String) 方法

定义

设置指定 DependencyObjectAccessKey 附加属性。

public:
 static void SetAccessKey(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetAccessKey (System.Windows.DependencyObject element, string value);
static member SetAccessKey : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetAccessKey (element As DependencyObject, value As String)

参数

element
DependencyObject

要在其上设置属性的 DependencyObject

value
String

要设置的访问密钥值。

适用于

另请参阅