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

DevCenterModelFactory.StopOnDisconnectConfiguration Method

Definition

Initializes a new instance of StopOnDisconnectConfiguration.

public static Azure.Developer.DevCenter.Models.StopOnDisconnectConfiguration StopOnDisconnectConfiguration(Azure.Developer.DevCenter.Models.StopOnDisconnectStatus status = default, int? gracePeriodMinutes = default);
static member StopOnDisconnectConfiguration : Azure.Developer.DevCenter.Models.StopOnDisconnectStatus * Nullable<int> -> Azure.Developer.DevCenter.Models.StopOnDisconnectConfiguration
Public Shared Function StopOnDisconnectConfiguration (Optional status As StopOnDisconnectStatus = Nothing, Optional gracePeriodMinutes As Nullable(Of Integer) = Nothing) As StopOnDisconnectConfiguration

Parameters

status
StopOnDisconnectStatus

Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.

gracePeriodMinutes
Nullable<Int32>

The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.

Returns

A new StopOnDisconnectConfiguration instance for mocking.

Applies to