语言

EventHandlerClass 类

定义

包或其他容器上的容器,用于存放可执行对象,在特定事件发生时运行。

public ref class EventHandlerClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::EventHandler, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSBreakpointSite100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSContainer100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutable100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutionMetrics100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSName100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPersist100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPropertiesProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("C41382ED-0293-4D63-AD59-7C92B5911CB1")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class EventHandlerClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.EventHandler, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("49FE416D-E513-49F9-A292-6311CF05A643")]
public class EventHandlerClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.EventHandler, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("38E200B8-D503-46DF-9307-019C8FB19D37")]
public class EventHandlerClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.EventHandler, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSSequence100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("C41382ED-0293-4D63-AD59-7C92B5911CB1")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type EventHandlerClass = class
    interface EventHandler
    interface IDTSEventHandler100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSExecutable100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("49FE416D-E513-49F9-A292-6311CF05A643")>]
type EventHandlerClass = class
    interface EventHandler
    interface IDTSEventHandler100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSExecutable100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("38E200B8-D503-46DF-9307-019C8FB19D37")>]
type EventHandlerClass = class
    interface EventHandler
    interface IDTSEventHandler100
    interface IDTSContainer100
    interface IDTSSequence100
    interface IDTSExecutable100
    interface IDTSExecutionMetrics100
    interface IDTSPropertiesProvider100
    interface IDTSName100
    interface IDTSBreakpointSite100
    interface IDTSSuspend100
    interface IDTSPersist100
    interface IDTSRuntimeObject100
Public Class EventHandlerClass
Implements EventHandler, IDTSBreakpointSite100, IDTSContainer100, IDTSExecutable100, IDTSExecutionMetrics100, IDTSName100, IDTSPersist100, IDTSPropertiesProvider100, IDTSRuntimeObject100, IDTSSequence100
继承
EventHandlerClass
属性
实现

注解

有关详细信息,请参阅 DtsEventHandler

构造函数

名称 说明
EventHandlerClass()

初始化 EventHandlerClass 类的新实例。

属性

名称 说明
CreationName

获取运行时引擎用来创建 EventHandlerClass实例的名称。 此属性为只读。

DebugMode

获取或设置一个布尔值,指示任务是否应检查断点是否启用。

DelayValidation

获得或设置一个布尔值,指示任务验证是否延迟到运行时。 默认值为 false。

Description

获取或设置对象的 EventHandlerClass 描述。

Disable

获得一个布尔值,表示该对象是否 EventHandlerClass 被禁用。

Executables

在该容器中获得一组可执行对象,事件发生时执行。 此属性为只读。

ExecutionDuration

获得一个表示容器执行时间(毫秒级)的值。 此属性为只读。

ExecutionResult

获得一个表示对象执行 EventHandlerClass 成功或失败的值。

ExecutionStatus

获得一个值,表示调用时对象执行状态 EventHandlerClass

FailPackageOnFailure

获得或设置一个布尔值,表示子容器失败时包是否失败。 该特性用于容器,而非包裹本身。

FailParentOnFailure

获得或设置一个布尔值,表示父容器在子容器失败时是否失败。

ForcedExecutionValue

如果该 ForceExecutionValue 属性设置为 true,则会获得或设置一个指定包返回的可选执行值的值。

ForceExecutionResult

获取或设置一个 DTSForcedExecResult 枚举值,指定容器的强制执行结果。

ForceExecutionValue

获取或设置一个布尔值,指示容器的执行值是否应强制包含某个特定值。

ID

获取 ID 是 的 GUID。EventHandlerClass 该值为只读。

IDTSSuspend100_SuspendRequired

获得或设置一个布尔值,指示任务在遇到断点时是否应暂停。 当遇到断点时,运行时引擎为任务和容器设置该值。

IsDefaultLocaleID

获得一个布尔值,指示容器是否使用默认位置。 此属性为只读。

IsolationLevel

获取或设置对象中 EventHandlerClass 交易的隔离级别。

LocaleID

获取或设置一个整数,指示执行对象时EventHandlerClass使用的 Microsoft Win32® localeID。

LogEntryInfos

获得一组日志条目定义。 此属性为只读。

LoggingMode

从枚举中获取或设置 DTSLoggingMode 一个值,指示容器的日志模式。

LoggingOptions

获取一个包含属性的对象,指示容器的过滤和日志资源。 此属性为只读。

MaximumErrorCount

获取或设置一个整数值,指定在对象停止运行前 EventHandlerClass 可能发生的最大错误次数。

Name

获取或设置 . 的名称 EventHandlerClass

Parent

拿到父容器。 该值为只读。

PrecedenceConstraints

在该容器中的可执行对象上获得一组优先级约束(如果有的话)。 此属性为只读。

Properties

获取对象的集合 IDTSProperty100 。 此属性为只读。

StartTime

它会得到容器开始执行的时间。 此属性为只读。

StopTime

在容器停止执行时获得时间。 此属性为只读。

SuspendRequired

获得或设置一个布尔值,指示任务在遇到断点时是否应暂停。 当遇到断点时,运行时引擎为任务和容器设置该值。

TransactionOption

获取或设置一个值,表示容器是否参与交易。

VariableDispenser

获得一个变量分配对象,这样与容器关联的变量可以被锁定用于读写。

Variables

获得包含该容器变量的集合对象。 此属性为只读。

方法

名称 说明
AcceptBreakpointManager(IDTSBreakpointManager100)

把a IDTSBreakpointManager100 传给任务。 任务将使用断点管理器创建、移除并检查断点状态。 该方法由运行时调用,不用于代码中。

ComputeExpressions(Boolean)

计算该 EventHandlerClass 对象的表达式。

Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

将应用程序、容器或包作为包工作流的一部分运行。

GetExpression(String)

返回指定属性的表达式,若未赋值则返回空表达式。

GetParentID()

获取该容器的父标识符。

IDTSSuspend100_get_SuspendRequired()

包或其他容器上的容器,用于存放可执行对象,在特定事件发生时运行。

IDTSSuspend100_ResumeExecution()

暂停后继续执行任务。 任务或容器由运行时引擎恢复。

IDTSSuspend100_set_SuspendRequired(Boolean)

包或其他容器上的容器,用于存放可执行对象,在特定事件发生时运行。

IDTSSuspend100_SuspendExecution()

通知可执行文件需要暂停。 该方法由运行时引擎调用。

LoadFromXML(Object, IDTSEvents100)

从指定的XML文档加载 。EventHandlerClass

RegenerateID()

为容器创建一个新的 GUID,并更新容器 ID 属性。

ResumeExecution()

暂停后继续执行任务。 任务或容器由运行时引擎恢复。

SaveToXML(Object, Object, IDTSEvents100)

将 保存 到 EventHandlerClass 指定的 XML 文档中。

SetExpression(String, String)

将指定的表达式赋予该属性。 指定 null 以从属性中移除已有表达式。

SuspendExecution()

通知可执行文件需要暂停。 该方法由运行时引擎调用。

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

允许容器判断是否包含无效设置,导致无法成功执行。

适用于