语言

TaskHostClass 类

定义

有关详细信息,请参阅 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.Guid("88144A89-05AE-4303-80F3-A9C83116A367")]
[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("81262D7B-A471-4376-9207-A942CB4AFF67")]
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
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("88144A89-05AE-4303-80F3-A9C83116A367")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
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
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("81262D7B-A471-4376-9207-A942CB4AFF67")>]
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
[<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")>]
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
继承
TaskHostClass
属性
实现

构造函数

名称 说明
TaskHostClass()

初始化 TaskHostClass 类的新实例。

属性

名称 说明
ApartmentThreaded

有关详细信息,请参阅 TaskHost

CreationName

获取用于创建 TaskHostClass 对象的字符串。

DebugMode

获取或设置一个值,指示对象是否 TaskHostClass 处于调试模式。

DelayValidation

获取或设置一个值,指示任务验证是否延迟到运行时。

Description

获取或设置对象的 TaskHostClass 描述。

Disable

获取或设置一个值,指示该对象是否 TaskHostClass 被禁用。

DisableEventHandlers

获取或设置一个值,指示任务上的事件处理程序是否被禁用。

EventHandlers

获得一组事件处理对象。

EventInfos

获得一组 EventInfo 对象。

ExecutionDuration

获得一个值,表示容器执行时耗时的时间。

ExecutionResult

获得一个表示对象执行 TaskHostClass 成功或失败的值。

ExecutionStatus

获得一个值,表示调用时对象执行状态 TaskHostClass

ExecutionValue

获取任务执行的结果。

ExecValueVariable

获取或设置包含任务执行值的自定义变量。

FailPackageOnFailure

获取或设置一个值,指示子容器失败时包是否失败。

FailParentOnFailure

获取或设置一个值,指示父容器在子容器失败时是否失败。

ForcedExecutionValue

获取或设置包含容器定义值的对象。

ForceExecutionResult

获取或设置容器的执行结果。

ForceExecutionValue

获取或设置一个值,指示容器的执行值是否应强制包含某个特定值。

HostType

从描述容器宿主的枚举中获得值 DTSObjectHostType

ID

获得一个GUID来识别。DTSForcedExecResult

IDTSContainer100_DelayValidation

获得或设置一个值,指示验证是否被延迟。

IDTSSuspend100_SuspendRequired

获取或设置一个值,指示任务在遇到断点时是否应暂停。

InnerObject

得到包含于 TaskHostClass的对象。

IsDefaultLocaleID

获得一个值,表示容器是否使用默认位置。

IsolationLevel

得到 的隔离水平。TaskHostClass

LocaleID

获取或设置对象执行时 TaskHostClass 使用的locale id。

LogEntryInfos

获得一组 IDTSLogEntryInfos100 物品。

LoggingMode

获取或设置容器的日志模式。

LoggingOptions

获取一个包含属性的对象,指示容器的过滤和日志资源。

MaximumErrorCount

获得或设置一个表示最大错误数的值。

Name

获取或设置 . 的名称 TaskHostClass

Parent

拿到父容器。

Properties

获得 IDTSProperties100 包含任务相关属性的集合。

StartTime

它会得到容器开始执行的时间。

StopTime

它会得到容器执行结束的时间。

SuspendRequired

获取或设置一个值,指示任务在遇到断点时是否应暂停。

TransactionOption

获取或设置一个 DTSTransactionOption 枚举,指示容器是否参与交易。

VariableDispenser

获取 IDTSVariableDispenser100 一个对象,这样可以锁定与容器相关的变量。

Variables

获得包含该容器相关变量的集合。

方法

名称 说明
AcceptBreakpointManager(IDTSBreakpointManager100)

运行时引擎在创建任务或容器时调用此方法。

ComputeExpressions(Boolean)

计算对象的 TaskHostClass 表达式。

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

运行应用程序。

GetExpression(String)

返回包含指定属性表达式的字符串。

GetParentID()

返回对象的 TaskHostClass 父标识符。

IDTSContainer100_get_DelayValidation()

有关详细信息,请参阅 TaskHost

IDTSContainer100_set_DelayValidation(Boolean)

有关详细信息,请参阅 TaskHost

IDTSSuspend100_get_SuspendRequired()

有关详细信息,请参阅 TaskHost

IDTSSuspend100_ResumeExecution()

继续暂停执行。

IDTSSuspend100_set_SuspendRequired(Boolean)

有关详细信息,请参阅 TaskHost

IDTSSuspend100_SuspendExecution()

暂停执行。

LoadFromXML(Object, IDTSEvents100)

加载一个保存为XML格式的包。

RegenerateID()

为序列创建一个新的GUID。

ResumeExecution()

暂停后继续执行任务。

SaveToXML(Object, Object, IDTSEvents100)

将软件包保存为XML格式。

SetExpression(String, String)

将指定的表达式赋予该属性。

SuspendExecution()

当可执行文件需要暂停时调用。

Validate(IDTSConnections100, IDTSVariables100, IDTSEvents100, IDTSLogging100)

允许软件包判断是否包含无效设置,导致无法成功执行。

适用于