共用方式為


ArmSqlModelFactory.AutomaticTuningServerOptions Method

Definition

Initializes a new instance of AutomaticTuningServerOptions.

public static Azure.ResourceManager.Sql.Models.AutomaticTuningServerOptions AutomaticTuningServerOptions (Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeDesired? desiredState = default, Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeActual? actualState = default, int? reasonCode = default, Azure.ResourceManager.Sql.Models.AutomaticTuningServerReason? reasonDesc = default);
static member AutomaticTuningServerOptions : Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeDesired> * Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningOptionModeActual> * Nullable<int> * Nullable<Azure.ResourceManager.Sql.Models.AutomaticTuningServerReason> -> Azure.ResourceManager.Sql.Models.AutomaticTuningServerOptions
Public Shared Function AutomaticTuningServerOptions (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 AutomaticTuningServerReason) = Nothing) As AutomaticTuningServerOptions

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<AutomaticTuningServerReason>

Reason description if desired and actual state are different.

Returns

A new AutomaticTuningServerOptions instance for mocking.

Applies to