DragDropAction Constructor (UITechnologyElement, UITechnologyElement, MouseButtons)
Initializes a new instance of the DragDropAction class by using the provided elements and mouse button setting.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Sub New ( _
sourceUIElement As UITechnologyElement, _
targetUIElement As UITechnologyElement, _
mouseButton As MouseButtons _
)
public DragDropAction(
UITechnologyElement sourceUIElement,
UITechnologyElement targetUIElement,
MouseButtons mouseButton
)
public:
DragDropAction(
UITechnologyElement^ sourceUIElement,
UITechnologyElement^ targetUIElement,
MouseButtons mouseButton
)
new :
sourceUIElement:UITechnologyElement *
targetUIElement:UITechnologyElement *
mouseButton:MouseButtons -> DragDropAction
public function DragDropAction(
sourceUIElement : UITechnologyElement,
targetUIElement : UITechnologyElement,
mouseButton : MouseButtons
)
Parameters
sourceUIElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object that represents the element on which the drag operation starts.
targetUIElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object that represents the element on which the drag operation ends.
mouseButton
Type: MouseButtonsA member of the MouseButtons enumeration that indicates which mouse button is pressed.
.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.