TaskResult propriété
Returns the DTSExecResult of the Script task.
Espace de noms : Microsoft.SqlServer.Dts.Tasks.ScriptTask
Assembly : Microsoft.SqlServer.ScriptTask (dans Microsoft.SqlServer.ScriptTask.dll)
Syntaxe
'Déclaration
Public Property TaskResult As Integer
Get
Set
'Utilisation
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)
Valeur de la propriété
Type : System. . :: . .Int32
The DTSExecResult of the Script task.
Notes
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.
Exemples
The following sample of code for use inside a Script task demonstrates the use of the TaskResult property.
Dts.TaskResult = ScriptResults.Success