Dela via


StartTaskInformation.ExitCode Property

Definition

Gets the exit code of the program specified on the task command line.

public int? ExitCode { get; }
member this.ExitCode : Nullable<int>
Public ReadOnly Property ExitCode As Nullable(Of Integer)

Property Value

Remarks

This property is only returned if the task is in the Completed state. The exit code for a process reflects the specific convention implemented by the application developer for that process. If you use the exit code value to make decisions in your code, be sure that you know the exit code convention used by the application process. Note that the exit code may also be generated by the compute node operating system, such as when a process is forcibly terminated.

Applies to