Share via


ExitCodeMapping Class

Definition

How the Batch service should respond if a Task exits with a particular exit code.

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

Constructors

ExitCodeMapping(Int32, ExitOptions)

Initializes a new instance of ExitCodeMapping.

Properties

Code

A process exit code.

ExitOptions

How the Batch service should respond if the Task exits with this exit code.

Explicit Interface Implementations

IJsonModel<ExitCodeMapping>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ExitCodeMapping>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ExitCodeMapping>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ExitCodeMapping>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ExitCodeMapping>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to