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

AutoShutdownProfile 构造函数

定义

重载

AutoShutdownProfile()

初始化 AutoShutdownProfile 类的新实例。

AutoShutdownProfile(Nullable<EnableState>, Nullable<EnableState>, Nullable<ShutdownOnIdleMode>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

初始化 AutoShutdownProfile 类的新实例。

AutoShutdownProfile()

初始化 AutoShutdownProfile 类的新实例。

public AutoShutdownProfile ();
Public Sub New ()

适用于

AutoShutdownProfile(Nullable<EnableState>, Nullable<EnableState>, Nullable<ShutdownOnIdleMode>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

初始化 AutoShutdownProfile 类的新实例。

public AutoShutdownProfile (Microsoft.Azure.Management.LabServices.Models.EnableState? shutdownOnDisconnect = default, Microsoft.Azure.Management.LabServices.Models.EnableState? shutdownWhenNotConnected = default, Microsoft.Azure.Management.LabServices.Models.ShutdownOnIdleMode? shutdownOnIdle = default, TimeSpan? disconnectDelay = default, TimeSpan? noConnectDelay = default, TimeSpan? idleDelay = default);
new Microsoft.Azure.Management.LabServices.Models.AutoShutdownProfile : Nullable<Microsoft.Azure.Management.LabServices.Models.EnableState> * Nullable<Microsoft.Azure.Management.LabServices.Models.EnableState> * Nullable<Microsoft.Azure.Management.LabServices.Models.ShutdownOnIdleMode> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<TimeSpan> -> Microsoft.Azure.Management.LabServices.Models.AutoShutdownProfile
Public Sub New (Optional shutdownOnDisconnect As Nullable(Of EnableState) = Nothing, Optional shutdownWhenNotConnected As Nullable(Of EnableState) = Nothing, Optional shutdownOnIdle As Nullable(Of ShutdownOnIdleMode) = Nothing, Optional disconnectDelay As Nullable(Of TimeSpan) = Nothing, Optional noConnectDelay As Nullable(Of TimeSpan) = Nothing, Optional idleDelay As Nullable(Of TimeSpan) = Nothing)

参数

shutdownOnDisconnect
Nullable<EnableState>

是否启用断开连接时关闭。 可能的值包括:“Enabled”、“Disabled”

shutdownWhenNotConnected
Nullable<EnableState>

VM 在一段时间后未连接时是否会关闭。 可能的值包括:“Enabled”、“Disabled”

shutdownOnIdle
Nullable<ShutdownOnIdleMode>

VM 在空闲一段时间后是否会关闭。 可能的值包括:“None”、“UserAbsence”、“LowUsage”

disconnectDelay
Nullable<TimeSpan>

如果用户启用此行为,则 VM 在断开连接后保持运行的时间量。

noConnectDelay
Nullable<TimeSpan>

如果未建立连接并启用此行为,则 VM 在关闭之前保持运行的时间量。

idleDelay
Nullable<TimeSpan>

如果启用了此行为,则 VM 在关闭之前处于空闲状态的时间。

适用于