共用方式為


EventHandlerClass 類別

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

A container on a package or other containers that holds executable objects to run when specific events occur.

繼承階層

System.Object
  Microsoft.SqlServer.Dts.Runtime.Wrapper.EventHandlerClass

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

語法

'宣告
<GuidAttribute("B8E051B0-2B05-49C7-A60F-20E877392D5E")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public Class EventHandlerClass _
    Implements EventHandler, IDTSEventHandler100, IDTSContainer100, IDTSSequence100,  _
    IDTSExecutable100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100,  _
    IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100
'用途
Dim instance As EventHandlerClass
[GuidAttribute("B8E051B0-2B05-49C7-A60F-20E877392D5E")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public class EventHandlerClass : EventHandler, 
    IDTSEventHandler100, IDTSContainer100, IDTSSequence100, IDTSExecutable100, IDTSExecutionMetrics100, 
    IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, 
    IDTSRuntimeObject100
[GuidAttribute(L"B8E051B0-2B05-49C7-A60F-20E877392D5E")]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
public ref class EventHandlerClass : EventHandler, 
    IDTSEventHandler100, IDTSContainer100, IDTSSequence100, IDTSExecutable100, IDTSExecutionMetrics100, 
    IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, 
    IDTSRuntimeObject100
[<GuidAttribute("B8E051B0-2B05-49C7-A60F-20E877392D5E")>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
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 
    end
public class EventHandlerClass implements EventHandler, IDTSEventHandler100, IDTSContainer100, IDTSSequence100, IDTSExecutable100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100

EventHandlerClass 型別公開下列成員。

建構函式

  名稱 說明
公用方法 EventHandlerClass 基礎結構。Initializes a new instance of the EventHandlerClass class.

上層

屬性

  名稱 說明
公用屬性 CreationName 基礎結構。Gets the name that is used by the runtime engine to create an instance of the EventHandlerClass. This property is read-only.
公用屬性 DebugMode 基礎結構。Gets or sets a Boolean that indicates whether a task should check if breakpoints are enabled.
公用屬性 DelayValidation 基礎結構。Gets or sets a Boolean that indicates whether validation of the task is delayed until run time. The default value is false.
公用屬性 Description 基礎結構。Gets or sets the description of the EventHandlerClass object.
公用屬性 Disable 基礎結構。Gets a Boolean that indicates whether the EventHandlerClass object is disabled.
公用屬性 Executables 基礎結構。Gets a collection of executable objects in this container which run when the event occurs. This property is read-only.
公用屬性 ExecutionDuration 基礎結構。Gets a value that indicates the amount of time that the container spent in execution, in milliseconds. This property is read-only.
公用屬性 ExecutionResult 基礎結構。Gets a value that indicates the success or failure of the execution of the EventHandlerClass object.
公用屬性 ExecutionStatus 基礎結構。Gets a value that indicates the current status of the execution of the EventHandlerClass object at the time of the call.
公用屬性 FailPackageOnFailure 基礎結構。Gets or sets a Boolean that indicates whether the package fails when a child container fails. This property is used on containers, not the package itself.
公用屬性 FailParentOnFailure 基礎結構。Gets or sets a Boolean that indicates whether the parent container fails when a child container fails.
公用屬性 ForcedExecutionValue 基礎結構。If the ForceExecutionValue property is set to true, gets or sets a value that specifies the optional execution value the package returns.
公用屬性 ForceExecutionResult 基礎結構。Gets or sets a DTSForcedExecResult enumeration value that specifies the forced execution result of the container.
公用屬性 ForceExecutionValue 基礎結構。Gets or sets a Boolean that indicates whether the execution value of the container should be forced to contain a particular value.
公用屬性 ID 基礎結構。Gets the ID, which is a GUID, of the EventHandlerClass. The value is read-only.
公用屬性 IDTSSuspend100_SuspendRequired 基礎結構。Gets or sets a Boolean that indicates if tasks should suspend when they encounter a breakpoint. This value is set by the runtime engine for tasks and containers when a breakpoint is encountered.
公用屬性 IsDefaultLocaleID 基礎結構。Gets a Boolean that indicates whether the container uses the default locale. This property is read-only.
公用屬性 IsolationLevel 基礎結構。Gets or sets the isolation level of the transaction in the EventHandlerClass object.
公用屬性 LocaleID 基礎結構。Gets or sets an Integer that indicates the Microsoft Win32® localeID to use when the EventHandlerClass object is executed.
公用屬性 LogEntryInfos 基礎結構。Gets a collection of log entry definitions. This property is read-only.
公用屬性 LoggingMode 基礎結構。Gets or sets a value from the DTSLoggingMode enumeration that indicates the logging mode of the container.
公用屬性 LoggingOptions 基礎結構。Gets an object that contains properties that indicates the filtering and logging resource for containers. This property is read-only.
公用屬性 MaximumErrorCount 基礎結構。Gets or sets an Integer value that specifies the maximum number of errors that can occur before the EventHandlerClass object stops running.
公用屬性 Name 基礎結構。Gets or sets the name of the EventHandlerClass.
公用屬性 Parent 基礎結構。Gets the parent container. The value is read-only.
公用屬性 PrecedenceConstraints 基礎結構。Gets a collection of precedence constraints, if any, found on the executable objects in this container. This property is read-only.
公用屬性 Properties 基礎結構。Gets a collection of IDTSProperty100 objects. This property is read-only.
公用屬性 StartTime 基礎結構。Gets the time when the container starts execution. This property is read-only.
公用屬性 StopTime 基礎結構。Gets the time when the container stops execution. This property is read-only.
公用屬性 SuspendRequired 基礎結構。Gets or sets a Boolean that indicates if tasks should suspend when they encounter a breakpoint. This value is set by the runtime engine for tasks and containers when a breakpoint is encountered.
公用屬性 TransactionOption 基礎結構。Gets or sets a value that indicates whether the container participates in transactions.
公用屬性 VariableDispenser 基礎結構。Gets a variable dispenser object so that variables associated with the container can be locked for reading or writing.
公用屬性 Variables 基礎結構。Gets a collection object that contains the variables associated with this container. This property is read-only.

上層

方法

  名稱 說明
公用方法 AcceptBreakpointManager 基礎結構。Passes a IDTSBreakpointManager100 to a task. The task will use the breakpoint manager to create, remove, and check the status of breakpoints. This method is called by the runtime and is not used in code.
公用方法 ComputeExpressions 基礎結構。Computes the expressions of this EventHandlerClass object.
公用方法 Equals (繼承自 Object。)
公用方法 Execute 基礎結構。Runs the application, container, or package as part of a package workflow.
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetExpression 基礎結構。Returns the expression for the specified property or nullnull 參考 (在 Visual Basic 中為 Nothing) if no expression is assigned.
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetParentID 基礎結構。Gets the parent identifier of this container.
公用方法 GetType (繼承自 Object。)
公用方法 IDTSSuspend100_ResumeExecution 基礎結構。Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
公用方法 IDTSSuspend100_SuspendExecution 基礎結構。Notifies that the executable needs to suspend. This method is called by the runtime engine.
公用方法 LoadFromXML 基礎結構。Loads an EventHandlerClass from the specified XML document.
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 RegenerateID 基礎結構。Creates a new GUID for the container and updates the container ID property.
公用方法 ResumeExecution 基礎結構。Resumes execution of the task after pausing. The task or container is resumed by the runtime engine.
公用方法 SaveToXML 基礎結構。Saves an EventHandlerClass to the specified XML document.
公用方法 SetExpression 基礎結構。Assigns the specified expression to the property. Specify nullnull 參考 (在 Visual Basic 中為 Nothing) to remove an existing expression from the property.
公用方法 SuspendExecution 基礎結構。Notifies that the executable needs to suspend. This method is called by the runtime engine.
公用方法 ToString (繼承自 Object。)
公用方法 Validate 基礎結構。Allows the container to determine if it contains invalid settings that will prevent it from executing successfully.

上層

備註

For more information, see DtsEventHandler.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間