Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementThe control to which the key press (down) is sent.
keys
Type: ModifierKeysThe modifier keys to 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.