共用方式為


DragDropAction 建構函式 (UITechnologyElement, UITechnologyElement, MouseButtons)

使用提供的項目和滑鼠按鈕設定,初始化 DragDropAction 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Common
組件:  Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

語法

'宣告
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
)

參數

.NET Framework 安全性

請參閱

參考

DragDropAction 類別

DragDropAction 多載

Microsoft.VisualStudio.TestTools.UITest.Common 命名空間

UITechnologyElement

MouseButtons