Share via


Keyboard.ReleaseModifierKeys Method (UITestControl, ModifierKeys)

Releases the specified keys that were previously pressed by using the PressModifierKeys method in the given control.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Shared Sub ReleaseModifierKeys ( _
    control As UITestControl, _
    keys As ModifierKeys _
)
public static void ReleaseModifierKeys(
    UITestControl control,
    ModifierKeys keys
)
public:
static void ReleaseModifierKeys(
    UITestControl^ control, 
    ModifierKeys keys
)
static member ReleaseModifierKeys : 
        control:UITestControl * 
        keys:ModifierKeys -> unit
public static function ReleaseModifierKeys(
    control : UITestControl, 
    keys : ModifierKeys
)

Parameters

  • keys
    Type: ModifierKeys

    The sum of one or more values of the ModifierKeys enumeration.

.NET Framework Security

See Also

Reference

Keyboard Class

ReleaseModifierKeys Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

PressModifierKeys