语言

DtsContainer.ForceExecutionResult 属性

定义

获取或设置一个 DTSForcedExecResult 枚举值,指定容器的强制执行结果。

public:
 property Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult ForceExecutionResult { Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult get(); void set(Microsoft::SqlServer::Dts::Runtime::DTSForcedExecResult value); };
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")]
[Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ForceExecutionResultDesc")]
public Microsoft.SqlServer.Dts.Runtime.DTSForcedExecResult ForceExecutionResult { get; set; }
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyCategory(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "PropertyCategoryExecution")>]
[<Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescription(typeof(Microsoft.SqlServer.Dts.Runtime.Localized), "ForceExecutionResultDesc")>]
member this.ForceExecutionResult : Microsoft.SqlServer.Dts.Runtime.DTSForcedExecResult with get, set
Public Property ForceExecutionResult As DTSForcedExecResult

属性值

一个 DTSForcedExecResult 报告包裹或容器被强制成功或失败的枚举。 该属性的默认值为 None,表明容器不强制执行结果。你可以在任务或容器上使用 ForceExecutionResult 属性来测试包中检查点的使用情况。 通过将任务或容器 Failure的强制执行结果设置为 ,你可以模拟实时失败。 当你重新运行包时,失败的任务和容器都会被重新运行。 更多信息请参见“使用检查点重启软件包”。

属性

适用于