Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Presses the specified modifier keys in the given control without releasing them.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Sub PressModifierKeys ( _
control As UITestControl, _
keys As ModifierKeys _
)
public static void PressModifierKeys(
UITestControl control,
ModifierKeys keys
)
public:
static void PressModifierKeys(
UITestControl^ control,
ModifierKeys keys
)
static member PressModifierKeys :
control:UITestControl *
keys:ModifierKeys -> unit
public static function PressModifierKeys(
control : UITestControl,
keys : ModifierKeys
)
Parameters
- control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
A UITestControl.
- keys
Type: System.Windows.Input.ModifierKeys
The sum of one or more values of the ModifierKeys enumeration.
Remarks
Modifier keys that have been pressed must be explicitly released by using the ReleaseModifierKeys.
.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.