Share via


IDTSExecuteProcess.FailTaskIfReturnCodeIsNotSuccessValue Property

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Gets or sets a value that indicates whether the task fails if the process exit code is different from the value specified in SuccessValue.

Namespace:  Microsoft.SqlServer.Dts.Tasks.ExecuteProcess
Assembly:  Microsoft.SqlServer.ExecProcTask (in Microsoft.SqlServer.ExecProcTask.dll)

Syntax

'Declaration
Property FailTaskIfReturnCodeIsNotSuccessValue As Boolean 
    Get 
    Set
'Usage
Dim instance As IDTSExecuteProcess 
Dim value As Boolean 

value = instance.FailTaskIfReturnCodeIsNotSuccessValue

instance.FailTaskIfReturnCodeIsNotSuccessValue = value
bool FailTaskIfReturnCodeIsNotSuccessValue { get; set; }
property bool FailTaskIfReturnCodeIsNotSuccessValue {
    bool get ();
    void set (bool value);
}
abstract FailTaskIfReturnCodeIsNotSuccessValue : bool with get, set
function get FailTaskIfReturnCodeIsNotSuccessValue () : boolean 
function set FailTaskIfReturnCodeIsNotSuccessValue (value : boolean)

Property Value

Type: System.Boolean
true if the task fails if the process exit code is different from the value specified in SuccessValue; false if the task continues regardless of a mismatch between the process error code and the SuccessValue property.

See Also

Reference

IDTSExecuteProcess Interface

Microsoft.SqlServer.Dts.Tasks.ExecuteProcess Namespace