Поделиться через


Класс TaskHostClass

Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.

For more information, see TaskHost.

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Сборка:  Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)

Синтаксис

'Декларация
<GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public Class TaskHostClass _
    Implements TaskHost, IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100,  _
    IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100,  _
    IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100
'Применение
Dim instance As TaskHostClass
[GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public class TaskHostClass : TaskHost, 
    IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, 
    IDTSPersist100, IDTSRuntimeObject100
[GuidAttribute(L"3A0263D5-875D-4BD4-A133-FC2EBFBAE434")]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
public ref class TaskHostClass : TaskHost, 
    IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, 
    IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, 
    IDTSPersist100, IDTSRuntimeObject100
[<GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
type TaskHostClass =  
    class 
        interface TaskHost 
        interface IDTSObjectHost100 
        interface IDTSTaskHost100 
        interface IDTSContainer100 
        interface IDTSExecutable100 
        interface IDTSEventsProvider100 
        interface IDTSExecutionMetrics100 
        interface IDTSPropertiesProvider100 
        interface IDTSName100 
        interface IDTSBreakpointSite100 
        interface IDTSSuspend100 
        interface IDTSPersist100 
        interface IDTSRuntimeObject100 
    end
public class TaskHostClass implements TaskHost, IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100

Тип TaskHostClass обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод TaskHostClass Инфраструктура. Initializes a new instance of the TaskHostClass class.

В начало

Свойства

  Имя Описание
Открытое свойство ApartmentThreaded Инфраструктура. For more information, see TaskHost.
Открытое свойство CreationName Инфраструктура. Gets the string that is used to create a TaskHostClass object.
Открытое свойство DebugMode Инфраструктура. Gets or sets a value that indicates whether the TaskHostClass object is in debug mode.
Открытое свойство DelayValidation Инфраструктура. Gets or sets a value that indicates whether validation of the task is delayed until run time.
Открытое свойство Description Инфраструктура. Gets or sets the description of the TaskHostClass object.
Открытое свойство Disable Инфраструктура. Gets or sets a value that indicates whether the TaskHostClass object is disabled.
Открытое свойство DisableEventHandlers Инфраструктура. Gets or sets a value that indicates whether the event handlers on task are disabled.
Открытое свойство EventHandlers Инфраструктура. Gets a collection of event handler objects.
Открытое свойство EventInfos Инфраструктура. Gets a collection of EventInfo objects.
Открытое свойство ExecutionDuration Инфраструктура. Gets a value that indicates the amount of time that the container spent in execution.
Открытое свойство ExecutionResult Инфраструктура. Gets a value that indicates the success or failure of the execution of the TaskHostClass object.
Открытое свойство ExecutionStatus Инфраструктура. Gets a value that indicates the current status of the execution of the TaskHostClass object at the time of the call.
Открытое свойство ExecutionValue Инфраструктура. Gets the result of the task execution.
Открытое свойство ExecValueVariable Инфраструктура. Gets or sets the custom variable that contains the execution value of the task.
Открытое свойство FailPackageOnFailure Инфраструктура. Gets or sets a value that indicates whether the package fails when a child container fails.
Открытое свойство FailParentOnFailure Инфраструктура. Gets or sets a value that indicates whether the parent container fails when a child container fails.
Открытое свойство ForcedExecutionValue Инфраструктура. Gets or sets an object that contains a container-defined value.
Открытое свойство ForceExecutionResult Инфраструктура. Gets or sets the execution result of the container.
Открытое свойство ForceExecutionValue Инфраструктура. Gets or sets a value that indicates whether the execution value of the container should be forced to contain a particular value.
Открытое свойство HostType Инфраструктура. Gets the value from the DTSObjectHostType enumeration that describes the host of the container.
Открытое свойство ID Инфраструктура. Gets a GUID that identifies the DTSForcedExecResult.
Открытое свойство IDTSContainer100_DelayValidation Инфраструктура. Gets or sets a value that indicates whether the validation is delayed.
Открытое свойство IDTSSuspend100_SuspendRequired Инфраструктура. Gets or sets a value that indicates whether the task should suspend when they encounter a breakpoint.
Открытое свойство InnerObject Инфраструктура. Gets the object that is contained by the TaskHostClass.
Открытое свойство IsDefaultLocaleID Инфраструктура. Gets a value that indicates whether the container uses the default locale.
Открытое свойство IsolationLevel Инфраструктура. Gets the isolation level of the TaskHostClass.
Открытое свойство LocaleID Инфраструктура. Gets or sets the locale id to use when the TaskHostClass object is executed.
Открытое свойство LogEntryInfos Инфраструктура. Gets a collection of IDTSLogEntryInfos100 object.
Открытое свойство LoggingMode Инфраструктура. Gets or sets the logging mode of the container.
Открытое свойство LoggingOptions Инфраструктура. Gets an object that contains properties that indicates the filtering and logging resource for containers.
Открытое свойство MaximumErrorCount Инфраструктура. Gets or sets a value that indicates the maximum number of errors.
Открытое свойство Name Инфраструктура. Gets or sets the name of the TaskHostClass.
Открытое свойство Parent Инфраструктура. Gets the parent container.
Открытое свойство Properties Инфраструктура. Gets a IDTSProperties100 collection that contains the properties associated with the task.
Открытое свойство StartTime Инфраструктура. Gets the time that the container began execution.
Открытое свойство StopTime Инфраструктура. Gets the time that the container ended execution.
Открытое свойство SuspendRequired Инфраструктура. Gets or set a value that indicates whether the task should suspend when they encounter a breakpoint.
Открытое свойство TransactionOption Инфраструктура. Gets or sets a DTSTransactionOption enumeration that indicates whether the container participates in transactions.
Открытое свойство VariableDispenser Инфраструктура. Gets a IDTSVariableDispenser100 object so variables associated with the container can be locked.
Открытое свойство Variables Инфраструктура. Gets a collection that contains the variables associated with this container.

В начало

Методы

  Имя Описание
Открытый метод AcceptBreakpointManager Инфраструктура. This method is called by the run-time engine when a task or container is created.
Открытый метод ComputeExpressions Инфраструктура. Computes expressions of the TaskHostClass object.
Открытый метод Equals (Производный от Object.)
Открытый метод Execute Инфраструктура. Runs the application.
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetExpression Инфраструктура. Returns a string that contains the expression for the specified property.
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetParentID Инфраструктура. Returns the parent identifier of the TaskHostClass object.
Открытый метод GetType (Производный от Object.)
Открытый метод IDTSSuspend100_ResumeExecution Инфраструктура. Resumes the suspend execution.
Открытый метод IDTSSuspend100_SuspendExecution Инфраструктура. Suspends the execution.
Открытый метод LoadFromXML Инфраструктура. Loads a package saves as XML format.
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод RegenerateID Инфраструктура. Creates a new GUID for the sequence.
Открытый метод ResumeExecution Инфраструктура. Resumes execution of the task after pausing.
Открытый метод SaveToXML Инфраструктура. Saves the package to XML format.
Открытый метод SetExpression Инфраструктура. Assigns the specified expression to the property.
Открытый метод SuspendExecution Инфраструктура. Called when the executable needs to suspend.
Открытый метод ToString (Производный от Object.)
Открытый метод Validate Инфраструктура. Allows the package to determine if it contains invalid settings that will prevent it from executing successfully.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Dts.Runtime.Wrapper