ScriptObjectModel.TaskResult Property
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.
Returns the DTSExecResult of the Script task.
public:
property int TaskResult { int get(); void set(int value); };
public int TaskResult { get; set; }
member this.TaskResult : int with get, set
Public Property TaskResult As Integer
Property Value
The DTSExecResult of the Script task.
Examples
The following sample of code for use inside a Script task demonstrates the use of the TaskResult property.
Dts.TaskResult = ScriptResults.Success
Remarks
Use the TaskResult property of the Dts
object in Script task code to notify the package of the success or failure of the Script task.
The Script task can also return additional user-defined information about the results of its execution through the ExecutionValue property.