Construtor KeyboardAction (UITechnologyElement, KeyActionType, Keys, String)

Inicializa uma nova instância de KeyboardAction classe usando o elemento fornecido, o tipo de evento-chave, a chave que foi pressionada e o valor que foi gerado por chave.

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

Sintaxe

'Declaração
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
    O valor que foi gerado pelo pressionamento de tecla.

Segurança do .NET Framework

Consulte também

Referência

KeyboardAction Classe

Sobrecargas KeyboardAction

Namespace Microsoft.VisualStudio.TestTools.UITest.Common

UITechnologyElement

KeyActionType

Keys