ComputeBatchModelFactory.ExitCodeMapping(Int32, ExitOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
How the Batch service should respond if a Task exits with a particular exit code.
public static Azure.Compute.Batch.ExitCodeMapping ExitCodeMapping(int code = 0, Azure.Compute.Batch.ExitOptions exitOptions = default);
static member ExitCodeMapping : int * Azure.Compute.Batch.ExitOptions -> Azure.Compute.Batch.ExitCodeMapping
Public Shared Function ExitCodeMapping (Optional code As Integer = 0, Optional exitOptions As ExitOptions = Nothing) As ExitCodeMapping
Parameters
- code
- Int32
A process exit code.
- exitOptions
- ExitOptions
How the Batch service should respond if the Task exits with this exit code.
Returns
A new ExitCodeMapping instance for mocking.