Share via


IDtsTaskUI.New(IWin32Window) Method

Definition

Adds a new task to a package.

public:
 void New(System::Windows::Forms::IWin32Window ^ parentWindow);
public void New (System.Windows.Forms.IWin32Window parentWindow);
abstract member New : System.Windows.Forms.IWin32Window -> unit
Public Sub New (parentWindow As IWin32Window)

Parameters

parentWindow
IWin32Window

The name of the parent window.

Remarks

A paste operation calls this New method after pasting a new task in the designer. You can check the IsPasteActive to see if this task was created by a copy/paste or cut/paste operation. If so, a new name may be required on the task so tasks do not have duplicate names.

Applies to