Task.ExitCode Property

Gets the Win32 exit code from the last execution of the task.

Namespace:  Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly:  Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)

Syntax

'Declaration
Public ReadOnly Property ExitCode As Integer
    Get
'Usage
Dim instance As Task
Dim value As Integer

value = instance.ExitCode
public int ExitCode { get; }

Property Value

Type: System.Int32
The exit code.

Remarks

If the task failed to start on its last run, the reason is returned as an exception. This property is not updated while in an open task; the property does not change unless the task is closed and re-opened.

See Also

Reference

Task Class

Task Members

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace