使用提供的键事件类型、按下的键和该键生成的值初始化 KeyboardAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
public KeyboardAction(
KeyActionType actionType,
Keys key,
string keyValue
)
public:
KeyboardAction(
KeyActionType actionType,
Keys key,
String^ keyValue
)
new :
actionType:KeyActionType *
key:Keys *
keyValue:string -> KeyboardAction
Public Sub New (
actionType As KeyActionType,
key As Keys,
keyValue As String
)
参数
- actionType
KeyActionType 枚举的成员。
- key
Keys 枚举的成员。
- keyValue
由按键生成的值。
请参阅
KeyActionType
Keys
KeyboardAction 重载
KeyboardAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首