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