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

ArmContainerInstanceModelFactory.ContainerInstanceView 方法

定义

初始化 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

参数

restartCount
Nullable<Int32>

重启容器实例的次数。

currentState
ContainerState

当前容器实例状态。

previousState
ContainerState

以前的容器实例状态。

events
IEnumerable<ContainerEvent>

容器实例的事件。

返回

用于模拟的新 ContainerInstanceView 实例。

适用于