ScriptObjectModel.TaskResult Property
Returns the DTSExecResult of the Script task, mapped to the corresponding member of the ScriptObjectModel.Results enumeration.
네임스페이스: Microsoft.SqlServer.Dts.Tasks.ScriptTask
어셈블리: Microsoft.SqlServer.ScriptTask (in microsoft.sqlserver.scripttask.dll)
구문
‘선언
Public Property TaskResult As Integer
public int TaskResult { get; set; }
public:
property int TaskResult {
int get ();
void set (int value);
}
/** @property */
public int get_TaskResult ()
/** @property */
public void set_TaskResult (int value)
public function get TaskResult () : int
public function set TaskResult (value : int)
속성 값
The DTSExecResult of the Script task, mapped to the corresponding member of the ScriptObjectModel.Results enumeration.
주의
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.
예
The following sample of code for use inside a Script task demonstrates the use of the TaskResult property.
Dts.TaskResult = Dts.Results.Success
스레드 보안
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