Partager via


UITestActionExecutor.PressModifierKeys Method (UITechnologyElement, ModifierKeys)

Presses the given modifier keys without releasing it. To release the modifier keys, explicit call to ReleaseModifierKeysImplementation should be made.

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

Syntax

'Declaration
Public MustOverride Sub PressModifierKeys ( _
    control As UITechnologyElement, _
    keys As ModifierKeys _
)
public abstract void PressModifierKeys(
    UITechnologyElement control,
    ModifierKeys keys
)
public:
virtual void PressModifierKeys(
    UITechnologyElement^ control, 
    ModifierKeys keys
) abstract
abstract PressModifierKeys : 
        control:UITechnologyElement * 
        keys:ModifierKeys -> unit
public abstract function PressModifierKeys(
    control : UITechnologyElement, 
    keys : ModifierKeys
)

Parameters

  • keys
    Type: ModifierKeys

    The modifier keys to press.

.NET Framework Security

See Also

Reference

UITestActionExecutor Class

PressModifierKeys Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace