Share via


StartTaskInformation.ExitCode Property

Definition

Gets or sets the exit code of the program specified on the StartTask command line.

[Newtonsoft.Json.JsonProperty(PropertyName="exitCode")]
public int? ExitCode { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="exitCode")>]
member this.ExitCode : Nullable<int> with get, set
Public Property ExitCode As Nullable(Of Integer)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

This property is set only if the StartTask is in the completed state. In general, 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. However, if the Batch service terminates the StartTask (due to timeout, or user termination via the API) you may see an operating system-defined exit code.

Applies to