Condividi tramite


Costruttore KeyboardAction (UITechnologyElement, KeyActionType, Keys, String)

Inizializza una nuova istanza di KeyboardAction classe utilizzando l'elemento specificato, il tipo di evento tasto, il tasto premuto e il valore generato da quella chiave.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.UITest.Common
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • keyValue
    Tipo: System.String
    Il valore generato dalla stampa principale.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

KeyboardAction Classe

Overload KeyboardAction

Spazio dei nomi Microsoft.VisualStudio.TestTools.UITest.Common

UITechnologyElement

KeyActionType

Keys