DTSForcedExecResult Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the execution result of a container when the container's ForceExecutionValue is set to true.
public enum class DTSForcedExecResult
public enum DTSForcedExecResult
type DTSForcedExecResult =
Public Enum DTSForcedExecResult
- Inheritance
-
DTSForcedExecResult
Fields
Name | Value | Description |
---|---|---|
None | -1 | The execution result is set to None. The event handler returns the actual execution result; the result is not forced. |
Success | 0 | The execution result is set to Success. |
Failure | 1 | The execution result is set to Failure. |
Completion | 2 | The execution result is set to Completion. |
Examples
The following code example creates a new package, and explicitly sets the ForceExecutionResult on the Package
to Failure.
Package pkg = new Package();
Pkg.ForceExecutionResult = DTSForcedExecResult.Failure;
Dim pkg As Package = New Package()
Pkg.ForceExecutionResult = DTSForcedExecResult.Failure
Remarks
This enumeration is available to containers that need to force a specific execution result. You can use the ForceExecutionResult property on a container to test the use of checkpoints in a package. By setting ForceExecutionResult
of a task or container to Failure, you can imitate real-time failure. When you rerun the package, failed task and containers will be rerun.