Task.ExitCode Property

SharePoint 2007

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)

public int ExitCode { get; }

Property Value

Type: System.Int32
The exit code.

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.