你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ExitOptions Class

Definition

Specifies how the Batch service responds to a particular exit condition.

public class ExitOptions : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.ExitOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.ExitOptions>
type ExitOptions = class
    interface IJsonModel<ExitOptions>
    interface IPersistableModel<ExitOptions>
Public Class ExitOptions
Implements IJsonModel(Of ExitOptions), IPersistableModel(Of ExitOptions)
Inheritance
ExitOptions
Implements

Constructors

ExitOptions()

Initializes a new instance of ExitOptions.

Properties

DependencyAction

An action that the Batch service performs on Tasks that depend on this Task. Possible values are 'satisfy' (allowing dependent tasks to progress) and 'block' (dependent tasks continue to wait). Batch does not yet support cancellation of dependent tasks.

JobAction

An action to take on the Job containing the Task, if the Task completes with the given exit condition and the Job's onTaskFailed property is 'performExitOptionsJobAction'. The default is none for exit code 0 and terminate for all other exit conditions. If the Job's onTaskFailed property is noaction, then specifying this property returns an error and the add Task request fails with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).

Explicit Interface Implementations

IJsonModel<ExitOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ExitOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExitOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExitOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ExitOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to