KeyboardAction.Key 属性

获取或设置按下的键。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

语法

声明
Public Property Key As Keys
    Get
    Set
public Keys Key { get; set; }
public:
property Keys Key {
    Keys get ();
    void set (Keys value);
}
member Key : Keys with get, set
function get Key () : Keys
function set Key (value : Keys)

属性值

类型:System.Windows.Forms.Keys
按下的键。

备注

设置此属性将引发 PropertyChanged 事件。

.NET Framework 安全性

请参见

参考

KeyboardAction 类

Microsoft.VisualStudio.TestTools.UITest.Common 命名空间

Keys

PropertyChanged