Partager via


Classe TaskHostClass

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

For more information, see TaskHost.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly :  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntaxe

'Déclaration
<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
'Utilisation
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

Le type TaskHostClass expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique TaskHostClass Infrastructure. Initializes a new instance of the TaskHostClass class.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

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

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dts.Runtime.Wrapper