Initializes a new instance of the DragAction class by using the provided element and buttons.
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, _
    mouseButton As MouseButtons _
)
public DragAction(
    UITechnologyElement uiElement,
    MouseButtons mouseButton
)
public:
DragAction(
    UITechnologyElement^ uiElement, 
    MouseButtons mouseButton
)
new : 
        uiElement:UITechnologyElement * 
        mouseButton:MouseButtons -> DragAction
public function DragAction(
    uiElement : UITechnologyElement, 
    mouseButton : MouseButtons
)
Parameters
- uiElement 
 Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement- A UITechnologyElement object. 
- mouseButton 
 Type: MouseButtons- A member of the MouseButtons enumeration that indicates which 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.