MouseAction Constructor (UITechnologyElement, MouseButtons, MouseActionType)
Initializes a new instance of the MouseAction class by using the provided element, button designation, and type of action.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Sub New ( _
uiElement As UITechnologyElement, _
button As MouseButtons, _
actionType As MouseActionType _
)
public MouseAction(
UITechnologyElement uiElement,
MouseButtons button,
MouseActionType actionType
)
public:
MouseAction(
UITechnologyElement^ uiElement,
MouseButtons button,
MouseActionType actionType
)
new :
uiElement:UITechnologyElement *
button:MouseButtons *
actionType:MouseActionType -> MouseAction
public function MouseAction(
uiElement : UITechnologyElement,
button : MouseButtons,
actionType : MouseActionType
)
Parameters
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object where the mouse operation occurred.
button
Type: MouseButtonsA member of the MouseButtons enumeration that indicates which mouse button is pressed.
actionType
Type: Microsoft.VisualStudio.TestTools.UITest.Common.MouseActionTypeA member of the MouseActionType enumeration that indicates the kind of mouse operation.
.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.