KeyboardAction Constructor (KeyActionType, Keys, String)

 

Initializes a new instance of the KeyboardAction class by using the provided type of key event, the key that was pressed, and the value that was generated by that key.

Namespace:   Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

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
)

Parameters

  • keyValue
    Type: System.String

    The value that was generated by the key press.

See Also

KeyActionType
Keys
KeyboardAction Overload
KeyboardAction Class
Microsoft.VisualStudio.TestTools.UITest.Common Namespace

Return to top