ArmContainerInstanceModelFactory.ContainerState 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.
Initializes a new instance of ContainerState.
public static Azure.ResourceManager.ContainerInstance.Models.ContainerState ContainerState (string state = default, DateTimeOffset? startOn = default, int? exitCode = default, DateTimeOffset? finishOn = default, string detailStatus = default);
static member ContainerState : string * Nullable<DateTimeOffset> * Nullable<int> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.ContainerInstance.Models.ContainerState
Public Shared Function ContainerState (Optional state As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional exitCode As Nullable(Of Integer) = Nothing, Optional finishOn As Nullable(Of DateTimeOffset) = Nothing, Optional detailStatus As String = Nothing) As ContainerState
Parameters
- state
- String
The state of the container instance.
- startOn
- Nullable<DateTimeOffset>
The date-time when the container instance state started.
The container instance exit codes correspond to those from the docker run
command.
- finishOn
- Nullable<DateTimeOffset>
The date-time when the container instance state finished.
- detailStatus
- String
The human-readable status of the container instance state.
Returns
A new ContainerState instance for mocking.
Applies to
Azure SDK for .NET