共用方式為


New 方法

Adds a new task to a package.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Design
組件:  Microsoft.SqlServer.Dts.Design (在 Microsoft.SqlServer.Dts.Design.dll 中)

語法

'宣告
Sub New ( _
    parentWindow As IWin32Window _
)
'用途
Dim instance As IDtsTaskUI
Dim parentWindow As IWin32Window

instance.New(parentWindow)
void New(
    IWin32Window parentWindow
)
void New(
    IWin32Window^ parentWindow
)
abstract New : 
        parentWindow:IWin32Window -> unit 
function New(
    parentWindow : IWin32Window
)

參數

備註

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.