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,它是 EventHandlerClass 的 GUID。 该值为只读的。

IDTSSuspend100_SuspendRequired

获取或设置一个布尔值,该值指示任务在遇到断点时是否应挂起。 遇到断点时,将由任务和容器的运行时引擎设置此值。

IsDefaultLocaleID

获取一个布尔值,该值指示容器是否使用默认区域设置。 此属性为只读。

IsolationLevel

获取或设置 EventHandlerClass 对象中事务的隔离级别。

LocaleID

获取或设置一个 Integer 类型的值,该值指示执行对象时 EventHandlerClass 要使用的 Microsoft Win32® 区域设置 ID。

LogEntryInfos

获取日志条目定义的集合。 此属性为只读。

LoggingMode

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

LoggingOptions

获取一个对象,该对象包含指示容器的筛选和日志记录资源的属性。 此属性为只读。

MaximumErrorCount

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

Name

获取或设置 EventHandlerClass 的名称。

Parent

获取父容器。 该值为只读的。

PrecedenceConstraints

获取此容器中找到的可执行对象的优先约束的集合(如果有)。 此属性为只读。

Properties

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

StartTime

获取容器开始执行的时间。 此属性为只读。

StopTime

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

SuspendRequired

获取或设置一个布尔值,该值指示任务在遇到断点时是否应挂起。 遇到断点时,将由任务和容器的运行时引擎设置此值。

TransactionOption

获取或设置一个值,该值指示容器是否参与事务。

VariableDispenser

获取变量分配器对象,以便可以锁定与容器关联的变量进行读取或写入。

Variables

获取一个集合对象,其中包含与此容器关联的变量。 此属性为只读。

方法

AcceptBreakpointManager(IDTSBreakpointManager100)

IDTSBreakpointManager100 传递给某一任务。 该任务将使用断点管理器来创建、删除和检查断点的状态。 此方法由运行时调用,在代码中未使用。

ComputeExpressions(Boolean)

计算此 EventHandlerClass 对象的表达式。

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

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

GetExpression(String)

返回指定属性的表达式;如果未分配任何表达式,则返回 null。

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)

允许容器确定它是否包含阻止其成功执行的无效设置。

适用于