Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
Public Sub New ( _
actionType As KeyActionType, _
key As Keys, _
keyValue As String _
)
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 function KeyboardAction(
actionType : KeyActionType,
key : Keys,
keyValue : String
)
Parameters
actionType
Type: Microsoft.VisualStudio.TestTools.UITest.Common.KeyActionTypeA member of the KeyActionType enumeration.
key
Type: KeysA member of the Keys enumeration.
keyValue
Type: StringThe value that was generated by the key press.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.