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
)
參數
- sourceUIElement
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
UITechnologyElement 物件,表示拖曳作業開始的項目。
- targetUIElement
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
UITechnologyElement 物件,表示拖曳作業結束的項目。
- mouseButton
型別:System.Windows.Forms.MouseButtons
MouseButtons 列舉的成員,表示按下的滑鼠按鈕。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。