DataObjectCopyingEventArgs(IDataObject, Boolean) 建構函式

定義

初始化 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 若此參數設為 trueCopying 則當拖曳啟動時事件會觸發。

例外狀況

當 為dataObject,會被提高。

備註

DataObjectCopyingEventArgs物件通常是由啟動複製操作的應用程式所建立。

適用於