Share via


ExitConditions Constructors

Definition

Overloads

ExitConditions()

Initializes a new instance of the ExitConditions class.

ExitConditions(IList<ExitCodeMapping>, IList<ExitCodeRangeMapping>, ExitOptions, ExitOptions, ExitOptions)

Initializes a new instance of the ExitConditions class.

ExitConditions()

Source:
ExitConditions.cs

Initializes a new instance of the ExitConditions class.

public ExitConditions ();
Public Sub New ()

Applies to

ExitConditions(IList<ExitCodeMapping>, IList<ExitCodeRangeMapping>, ExitOptions, ExitOptions, ExitOptions)

Source:
ExitConditions.cs

Initializes a new instance of the ExitConditions class.

public ExitConditions (System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ExitCodeMapping> exitCodes = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ExitCodeRangeMapping> exitCodeRanges = default, Microsoft.Azure.Batch.Protocol.Models.ExitOptions preProcessingError = default, Microsoft.Azure.Batch.Protocol.Models.ExitOptions fileUploadError = default, Microsoft.Azure.Batch.Protocol.Models.ExitOptions defaultProperty = default);
new Microsoft.Azure.Batch.Protocol.Models.ExitConditions : System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ExitCodeMapping> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ExitCodeRangeMapping> * Microsoft.Azure.Batch.Protocol.Models.ExitOptions * Microsoft.Azure.Batch.Protocol.Models.ExitOptions * Microsoft.Azure.Batch.Protocol.Models.ExitOptions -> Microsoft.Azure.Batch.Protocol.Models.ExitConditions
Public Sub New (Optional exitCodes As IList(Of ExitCodeMapping) = Nothing, Optional exitCodeRanges As IList(Of ExitCodeRangeMapping) = Nothing, Optional preProcessingError As ExitOptions = Nothing, Optional fileUploadError As ExitOptions = Nothing, Optional defaultProperty As ExitOptions = Nothing)

Parameters

exitCodes
IList<ExitCodeMapping>

A list of individual Task exit codes and how the Batch service should respond to them.

exitCodeRanges
IList<ExitCodeRangeMapping>

A list of Task exit code ranges and how the Batch service should respond to them.

preProcessingError
ExitOptions

How the Batch service should respond if the Task fails to start due to an error.

fileUploadError
ExitOptions

How the Batch service should respond if a file upload error occurs.

defaultProperty
ExitOptions

How the Batch service should respond if the Task fails with an exit condition not covered by any of the other properties.

Applies to