Sdílet prostřednictvím


ArmSqlModelFactory.RecommendedActionErrorInfo Method

Definition

Initializes a new instance of RecommendedActionErrorInfo.

public static Azure.ResourceManager.Sql.Models.RecommendedActionErrorInfo RecommendedActionErrorInfo (string errorCode = default, Azure.ResourceManager.Sql.Models.ActionRetryableState? isRetryable = default);
static member RecommendedActionErrorInfo : string * Nullable<Azure.ResourceManager.Sql.Models.ActionRetryableState> -> Azure.ResourceManager.Sql.Models.RecommendedActionErrorInfo
Public Shared Function RecommendedActionErrorInfo (Optional errorCode As String = Nothing, Optional isRetryable As Nullable(Of ActionRetryableState) = Nothing) As RecommendedActionErrorInfo

Parameters

errorCode
String

Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists.

isRetryable
Nullable<ActionRetryableState>

Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No.

Returns

A new RecommendedActionErrorInfo instance for mocking.

Applies to