MouseAction Constructor (MouseButtons, MouseActionType)
Initializes a new instance of the MouseAction class by using the provided 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 ( _
button As MouseButtons, _
actionType As MouseActionType _
)
public MouseAction(
MouseButtons button,
MouseActionType actionType
)
public:
MouseAction(
MouseButtons button,
MouseActionType actionType
)
new :
button:MouseButtons *
actionType:MouseActionType -> MouseAction
public function MouseAction(
button : MouseButtons,
actionType : MouseActionType
)
Parameters
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.