KeyboardAction (Constructor) (UITechnologyElement, KeyActionType, Keys, String)

Inicializa una nueva instancia de la clase KeyboardAction utilizando el elemento, el tipo de evento de tecla, la tecla que se presionó y el valor generado por esa tecla proporcionados.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.UITest.Common
Ensamblado:  Microsoft.VisualStudio.TestTools.UITest.Common (en Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Sintaxis

'Declaración
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
)

Parámetros

  • keyValue
    Tipo: System.String
    Valor generado al presionar la tecla.

Seguridad de .NET Framework

Vea también

Referencia

KeyboardAction Clase

KeyboardAction (Sobrecarga)

Microsoft.VisualStudio.TestTools.UITest.Common (Espacio de nombres)

UITechnologyElement

KeyActionType

Keys