TaskHostClass Class

Definition

For more information, see TaskHost.

public ref class TaskHostClass : Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSBreakpointSite100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSContainer100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEventsProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutable100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSExecutionMetrics100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSName100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPersist100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPropertiesProvider100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSTaskHost100, Microsoft::SqlServer::Dts::Runtime::Wrapper::TaskHost
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("88144A89-05AE-4303-80F3-A9C83116A367")]
public class TaskHostClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSTaskHost100, Microsoft.SqlServer.Dts.Runtime.Wrapper.TaskHost
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("81262D7B-A471-4376-9207-A942CB4AFF67")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class TaskHostClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSTaskHost100, Microsoft.SqlServer.Dts.Runtime.Wrapper.TaskHost
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("72A2DB98-0F77-4014-98F6-8B200D9C083D")]
public class TaskHostClass : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSBreakpointSite100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEventsProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutable100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSExecutionMetrics100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSName100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPersist100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPropertiesProvider100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSTaskHost100, Microsoft.SqlServer.Dts.Runtime.Wrapper.TaskHost
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
Public Class TaskHostClass
Implements IDTSBreakpointSite100, IDTSContainer100, IDTSEventsProvider100, IDTSExecutable100, IDTSExecutionMetrics100, IDTSName100, IDTSPersist100, IDTSPropertiesProvider100, IDTSRuntimeObject100, IDTSTaskHost100, TaskHost
Inheritance
TaskHostClass
Attributes
Implements

Constructors

TaskHostClass()

Initializes a new instance of the TaskHostClass class.

Properties

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.

Methods

AcceptBreakpointManager(IDTSBreakpointManager100)

This method is called by the run-time engine when a task or container is created.

ComputeExpressions(Boolean)

Computes expressions of the TaskHostClass object.

Execute(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100, Object)

Runs the application.

GetExpression(String)

Returns a string that contains the expression for the specified property.

GetParentID()

Returns the parent identifier of the TaskHostClass object.

IDTSContainer100_get_DelayValidation()
IDTSContainer100_set_DelayValidation(Boolean)
IDTSSuspend100_get_SuspendRequired()
IDTSSuspend100_ResumeExecution()

Resumes the suspend execution.

IDTSSuspend100_set_SuspendRequired(Boolean)
IDTSSuspend100_SuspendExecution()

Suspends the execution.

LoadFromXML(Object, IDTSEvents100)

Loads a package saves as XML format.

RegenerateID()

Creates a new GUID for the sequence.

ResumeExecution()

Resumes execution of the task after pausing.

SaveToXML(Object, Object, IDTSEvents100)

Saves the package to XML format.

SetExpression(String, String)

Assigns the specified expression to the property.

SuspendExecution()

Called when the executable needs to suspend.

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

Allows the package to determine if it contains invalid settings that will prevent it from executing successfully.

Applies to