DataObjectCopyingEventArgs(IDataObject, Boolean) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DataObjectCopyingEventArgs 的新執行個體。
public:
DataObjectCopyingEventArgs(System::Windows::IDataObject ^ dataObject, bool isDragDrop);
public DataObjectCopyingEventArgs(System.Windows.IDataObject dataObject, bool isDragDrop);
new System.Windows.DataObjectCopyingEventArgs : System.Windows.IDataObject * bool -> System.Windows.DataObjectCopyingEventArgs
Public Sub New (dataObject As IDataObject, isDragDrop As Boolean)
參數
- dataObject
- IDataObject
一個 DataObject 準備複製的資料。
- isDragDrop
- Boolean
一個 Boolean 表示複製品是否屬於拖放操作的值。
true用以表示複製品是拖放操作的一部分;否則,。 false 若此參數設為 true, Copying 則當拖曳啟動時事件會觸發。
例外狀況
當 為dataObject時,會被提高。
備註
DataObjectCopyingEventArgs物件通常是由啟動複製操作的應用程式所建立。