Sets the execution result of an executable that is preceded by this constraint. Use this method to variate execution result and test the state of the preceding constraint on the different results. To evaluate state use Evaluate()()()() method.

Namespace: SSIS.Test.Dts
Assembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)

Syntax

C#
public void SetExecutionResult(
	DtsExecutionResult result
)
Visual Basic
Public Sub SetExecutionResult ( _
	result As DtsExecutionResult _
)
Visual C++
public:
void SetExecutionResult(
	DtsExecutionResult result
)

Parameters

result
Type: SSIS.Test.Dts..::..DtsExecutionResult
A value of execution result.

Examples

DtsPrecedenceConstraint pc; ... ... ... pc.SetExecutionResult(DTSExecutionResult.Success); var test = pc.Evaluate(); Console.WriteLine("Success test: " + test); pc.SetExecutionResult(DTSExecutionResult.Completion); test = pc.Evaluate(); Console.WriteLine("Completion test: " + test);

See Also