此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
获取或设置键盘快捷键。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
Public Property AcceleratorKey As Key
Get
Private Set
public Key AcceleratorKey { get; private set; }
public:
property Key AcceleratorKey {
Key get ();
private: void set (Key value);
}
member AcceleratorKey : Key with get, private set
function get AcceleratorKey () : Key
private function set AcceleratorKey (value : Key)
属性值
类型:System.Windows.Input.Key
键盘快捷键。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。