语言

IDTSEvents100 接口

定义

定义了事件的方法。

public interface class IDTSEvents100
[System.Runtime.InteropServices.Guid("C003D4F1-7DC4-4EEC-A498-635F18B35296")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSEvents100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("5D3DE54E-2203-48ED-9C06-F72C8E10BD84")]
public interface IDTSEvents100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("2DA57214-161A-4748-9989-1F7DB695C2DF")]
public interface IDTSEvents100
[<System.Runtime.InteropServices.Guid("C003D4F1-7DC4-4EEC-A498-635F18B35296")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSEvents100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("5D3DE54E-2203-48ED-9C06-F72C8E10BD84")>]
type IDTSEvents100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("2DA57214-161A-4748-9989-1F7DB695C2DF")>]
type IDTSEvents100 = interface
Public Interface IDTSEvents100
属性

方法

名称 说明
OnBreakpointHit(IDTSBreakpointSite100, IDTSBreakpointTarget100)

当任务中遇到断点时调用。

OnCustomEvent(IDTSTaskHost100, String, String, Object[], String, Boolean)

由任务调用,用于引发自定义的任务定义事件。

OnError(IDTSRuntimeObject100, Int32, String, String, String, Int32, String, Boolean)

出现错误时由任务或容器调用。

OnExecutionStatusChanged(IDTSExecutable100, DTSExecStatus, Boolean)

当任务或容器的执行状态发生变化时调用。

OnInformation(IDTSRuntimeObject100, Int32, String, String, String, Int32, String, Boolean)

每当任务需要提供信息时,都会被呼叫。

OnPostExecute(IDTSExecutable100, Boolean)

任务执行逻辑完成后立即调用。 此事件由任务或容器在其运行后引发。

OnPostValidate(IDTSExecutable100, Boolean)

任务验证逻辑完成后立即调用。 该事件由任务在任务验证后引发。

OnPreExecute(IDTSExecutable100, Boolean)

任务将要执行时调用。 此事件由任务或容器在其运行前一刻引发。

OnPreValidate(IDTSExecutable100, Boolean)

当任务的实际验证逻辑开始时调用。 当任务主机或容器开始验证时,该事件会被触发。

OnProgress(IDTSTaskHost100, String, Int32, Int32, Int32, String, Boolean)

要更新任务执行的进度时调用。

OnQueryCancel(Boolean)

表示在任务处理中可取消执行的任何节点调用的方法。 任务和容器触发该事件以决定是否应停止运行。

OnTaskFailed(IDTSTaskHost100)

任务宿主失败时由其调用。

OnVariableValueChanged(IDTSContainer100, IDTSVariable100, Boolean)

运行时引擎呼叫。 它不是按任务调用的。

OnWarning(IDTSRuntimeObject100, Int32, String, String, String, Int32, String)

只要任务处于不足以证明错误但需要通知客户端的状态时,都会被调用。

适用于