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

ArmSqlModelFactory.AutomaticTuningOptions Method

Definition

Initializes a new instance of AutomaticTuningOptions.

public static Azure.ResourceManager.Sql.Models.AutomaticTuningOptions AutomaticTuningOptions (Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeDesired? desiredState = default, Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeActual? actualState = default, int? reasonCode = default, Azure.ResourceManager.Sql.Models.AutomaticTuningDisabledReason? reasonDesc = default);
static member AutomaticTuningOptions : Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeDesired> * Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeActual> * Nullable<int> * Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningDisabledReason> -> Azure.ResourceManager.Sql.Models.AutomaticTuningOptions
Public Shared Function AutomaticTuningOptions (Optional desiredState As Nullable(Of AutomaticTuningOptionModeDesired) = Nothing, Optional actualState As Nullable(Of AutomaticTuningOptionModeActual) = Nothing, Optional reasonCode As Nullable(Of Integer) = Nothing, Optional reasonDesc As Nullable(Of AutomaticTuningDisabledReason) = Nothing) As AutomaticTuningOptions

Parameters

desiredState
Nullable<AutomaticTuningOptionModeDesired>

Automatic tuning option desired state.

actualState
Nullable<AutomaticTuningOptionModeActual>

Automatic tuning option actual state.

reasonCode
Nullable<Int32>

Reason code if desired and actual state are different.

reasonDesc
Nullable<AutomaticTuningDisabledReason>

Reason description if desired and actual state are different.

Returns

A new AutomaticTuningOptions instance for mocking.

Applies to