Compartir a través de


Clase TaskHostClass

Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.

For more information, see TaskHost.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Ensamblado:  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxis

'Declaración
<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

El tipo TaskHostClass expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público TaskHostClass Infraestructura. Initializes a new instance of the TaskHostClass class.

Arriba

Propiedades

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

Arriba

Métodos

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

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Dts.Runtime.Wrapper