ScriptObjectModel.ExecutionValue Property
Gets or sets a user-defined object that provides additional information about the results of task execution.
네임스페이스: Microsoft.SqlServer.Dts.Tasks.ScriptTask
어셈블리: Microsoft.SqlServer.ScriptTask (in microsoft.sqlserver.scripttask.dll)
구문
‘선언
Public Property ExecutionValue As Object
public Object ExecutionValue { get; set; }
public:
property Object^ ExecutionValue {
Object^ get ();
void set (Object^ value);
}
/** @property */
public Object get_ExecutionValue ()
/** @property */
public void set_ExecutionValue (Object value)
public function get ExecutionValue () : Object
public function set ExecutionValue (value : Object)
속성 값
A user-defined object that provides additional information about the results of task execution.
주의
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 as a value from the corresponding member of the ScriptObjectModel.Results enumeration.
예
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
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
ScriptObjectModel Class
ScriptObjectModel Members
Microsoft.SqlServer.Dts.Tasks.ScriptTask Namespace