KeyboardAction 构造函数 (UITechnologyElement, KeyActionType, Keys, String)

使用提供的元素、键事件类型、按下的键和该键生成的值初始化 KeyboardAction 类的新实例。

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

语法

声明
Public Sub New ( _
    uiElement As UITechnologyElement, _
    actionType As KeyActionType, _
    key As Keys, _
    keyValue As String _
)
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 function KeyboardAction(
    uiElement : UITechnologyElement, 
    actionType : KeyActionType, 
    key : Keys, 
    keyValue : String
)

参数

.NET Framework 安全性

请参见

参考

KeyboardAction 类

KeyboardAction 重载

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

UITechnologyElement

KeyActionType

Keys