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。 若此參數設為 true,則 Copying 事件會在初始化拖曳時引發。

例外狀況

dataObjectnull 時引發。

備註

DataObjectCopyingEventArgs物件通常是由起始複製作業的應用程式所建立。

適用於