共用方式為


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