The SuccessReturnCode property specifies a return code that indicates whether the task completed successfully.
object.SuccessReturnCode [= value]
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
| value | Return code from the process |
Long
Read/write
HRESULT GetSuccessReturnCode(LONG *pRetVal);
HRESULT SetSuccessReturnCode(LONG NewValue);
If the process exit code does not match the value specified by SuccessReturnCode, the task fails. The default value is 0.