Compartilhar via


Classe TaskHostClass

Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.

For more information, see TaskHost.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (em Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxe

'Declaração
<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
'Uso
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

O tipo TaskHostClass expõe os membros a seguir.

Construtores

  Nome Descrição
Método público TaskHostClass Infraestrutura. Initializes a new instance of the TaskHostClass class.

Início

Propriedades

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

Início

Métodos

  Nome Descrição
Método público AcceptBreakpointManager Infraestrutura. This method is called by the run-time engine when a task or container is created.
Método público ComputeExpressions Infraestrutura. Computes expressions of the TaskHostClass object.
Método público Equals (Herdado de Object.)
Método público Execute Infraestrutura. Runs the application.
Método protegido Finalize (Herdado de Object.)
Método público GetExpression Infraestrutura. Returns a string that contains the expression for the specified property.
Método público GetHashCode (Herdado de Object.)
Método público GetParentID Infraestrutura. Returns the parent identifier of the TaskHostClass object.
Método público GetType (Herdado de Object.)
Método público IDTSSuspend100_ResumeExecution Infraestrutura. Resumes the suspend execution.
Método público IDTSSuspend100_SuspendExecution Infraestrutura. Suspends the execution.
Método público LoadFromXML Infraestrutura. Loads a package saves as XML format.
Método protegido MemberwiseClone (Herdado de Object.)
Método público RegenerateID Infraestrutura. Creates a new GUID for the sequence.
Método público ResumeExecution Infraestrutura. Resumes execution of the task after pausing.
Método público SaveToXML Infraestrutura. Saves the package to XML format.
Método público SetExpression Infraestrutura. Assigns the specified expression to the property.
Método público SuspendExecution Infraestrutura. Called when the executable needs to suspend.
Método público ToString (Herdado de Object.)
Método público Validate Infraestrutura. Allows the package to determine if it contains invalid settings that will prevent it from executing successfully.

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Dts.Runtime.Wrapper