ScriptObjectModel.TaskResult 属性

Returns the DTSExecResult of the Script task.

命名空间:  Microsoft.SqlServer.Dts.Tasks.ScriptTask
程序集:  Microsoft.SqlServer.ScriptTask(在 Microsoft.SqlServer.ScriptTask.dll 中)

语法

声明
Public Property TaskResult As Integer 
    Get 
    Set
用法
Dim instance As ScriptObjectModel 
Dim value As Integer 

value = instance.TaskResult

instance.TaskResult = value
public int TaskResult { get; set; }
public:
property int TaskResult {
    int get ();
    void set (int value);
}
member TaskResult : int with get, set
function get TaskResult () : int 
function set TaskResult (value : int)

属性值

类型:System.Int32
The DTSExecResult of the Script task.

注释

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 = ScriptResults.Success

请参阅

参考

ScriptObjectModel 类

Microsoft.SqlServer.Dts.Tasks.ScriptTask 命名空间