Gesture.PressAndHold Method (UITestControl)
Perform a press and hold gesture which is mainly associated with activating a tooltip or a context menu.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
Syntax
'Declaration
Public Shared Sub PressAndHold ( _
control As UITestControl _
)
public static void PressAndHold(
UITestControl control
)
public:
static void PressAndHold(
UITestControl^ control
)
static member PressAndHold :
control:UITestControl -> unit
public static function PressAndHold(
control : UITestControl
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlControl on which the press and hold gesture is to be performed.
.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.