Compartilhar via


ArmContainerInstanceModelFactory.ContainerInstanceView Método

Definição

Inicializa uma nova instância de ContainerInstanceView.

public static Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView ContainerInstanceView (int? restartCount = default, Azure.ResourceManager.ContainerInstance.Models.ContainerState currentState = default, Azure.ResourceManager.ContainerInstance.Models.ContainerState previousState = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEvent> events = default);
static member ContainerInstanceView : Nullable<int> * Azure.ResourceManager.ContainerInstance.Models.ContainerState * Azure.ResourceManager.ContainerInstance.Models.ContainerState * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEvent> -> Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView
Public Shared Function ContainerInstanceView (Optional restartCount As Nullable(Of Integer) = Nothing, Optional currentState As ContainerState = Nothing, Optional previousState As ContainerState = Nothing, Optional events As IEnumerable(Of ContainerEvent) = Nothing) As ContainerInstanceView

Parâmetros

restartCount
Nullable<Int32>

O número de vezes que a instância de contêiner foi reiniciada.

currentState
ContainerState

Estado atual da instância de contêiner.

previousState
ContainerState

Estado anterior da instância de contêiner.

events
IEnumerable<ContainerEvent>

Os eventos da instância de contêiner.

Retornos

Uma nova ContainerInstanceView instância para simulação.

Aplica-se a