CreateTask 方法

此 API 支持 SQL Server 2008 基础结构,但不能通过代码直接使用。

命名空间:  Microsoft.SqlServer.Dts.Runtime.Wrapper
程序集:  Microsoft.SqlServer.DTSRuntimeWrap(在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

语法

声明
Public Overridable Sub CreateTask ( _
    bstrMoniker As String, _
    bstrTaskData As String, _
    pBreakpointManager As IDTSBreakpointManager100, _
    pEvents As IDTSInfoEvents100, _
    <OutAttribute> ByRef pdwCancelEvent As UInteger, _
    <OutAttribute> ByRef ppTask As IDTSTask100 _
)
用法
Dim instance As TaskCreator32Class
Dim bstrMoniker As String
Dim bstrTaskData As String
Dim pBreakpointManager As IDTSBreakpointManager100
Dim pEvents As IDTSInfoEvents100
Dim pdwCancelEvent As UInteger
Dim ppTask As IDTSTask100

instance.CreateTask(bstrMoniker, bstrTaskData, _
    pBreakpointManager, pEvents, pdwCancelEvent, _
    ppTask)
public virtual void CreateTask(
    string bstrMoniker,
    string bstrTaskData,
    IDTSBreakpointManager100 pBreakpointManager,
    IDTSInfoEvents100 pEvents,
    out uint pdwCancelEvent,
    out IDTSTask100 ppTask
)
public:
virtual void CreateTask(
    [InAttribute] String^ bstrMoniker, 
    [InAttribute] String^ bstrTaskData, 
    [InAttribute] IDTSBreakpointManager100^ pBreakpointManager, 
    [InAttribute] IDTSInfoEvents100^ pEvents, 
    [OutAttribute] unsigned int% pdwCancelEvent, 
    [OutAttribute] IDTSTask100^% ppTask
)
abstract CreateTask : 
        bstrMoniker:string * 
        bstrTaskData:string * 
        pBreakpointManager:IDTSBreakpointManager100 * 
        pEvents:IDTSInfoEvents100 * 
        pdwCancelEvent:uint32 byref * 
        ppTask:IDTSTask100 byref -> unit 
override CreateTask : 
        bstrMoniker:string * 
        bstrTaskData:string * 
        pBreakpointManager:IDTSBreakpointManager100 * 
        pEvents:IDTSInfoEvents100 * 
        pdwCancelEvent:uint32 byref * 
        ppTask:IDTSTask100 byref -> unit 
public function CreateTask(
    bstrMoniker : String, 
    bstrTaskData : String, 
    pBreakpointManager : IDTSBreakpointManager100, 
    pEvents : IDTSInfoEvents100, 
    pdwCancelEvent : uint, 
    ppTask : IDTSTask100
)

实现

IDTSTaskCreator100. . :: . .CreateTask(String, String, IDTSBreakpointManager100, IDTSInfoEvents100, UInt32%, IDTSTask100%)