Keyboard.PressModifierKeys Method (UITestControl, ModifierKeys)

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

  • keys
    Type: ModifierKeys

.NET Framework Security

See Also

Reference

Keyboard Class

PressModifierKeys Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace