共用方式為


ScriptObjectModel.ExecutionValue Property

Definition

Gets or sets a user-defined object that provides additional information about the results of task execution.

public:
 property System::Object ^ ExecutionValue { System::Object ^ get(); void set(System::Object ^ value); };
public object ExecutionValue { get; set; }
member this.ExecutionValue : obj with get, set
Public Property ExecutionValue As Object

Property Value

A user-defined object that provides additional information about the results of task execution.

Examples

The following sample of code for use inside a Script task demonstrates how the ExecutionValue can also be used to determine the path of the workflow.

Dim rowsAffected as Integer  
...  
rowsAffected = 1000  
Dts.ExecutionValue = rowsAffected  

Remarks

Use the ExecutionValue property of the Dts object in Script task code to return additional user-defined information about the results of task execution.This property gives the developer a way to exchange data with the package in addition to events and the separate DTSExecResult value. For example, if a Script task deletes rows from a table, it might return the number of rows deleted as the ExecutionValue. Subsequent tasks could then use this value to make decisions for additional processing.

The Script task returns its separate DTSExecResult through the TaskResult property.

Applies to