共用方式為


ArmResourcesModelFactory.WhatIfOperationResult Method

Definition

Initializes a new instance of WhatIfOperationResult.

public static Azure.ResourceManager.Resources.Models.WhatIfOperationResult WhatIfOperationResult(string status = default, Azure.ResponseError error = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> changes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> potentialChanges = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> diagnostics = default);
static member WhatIfOperationResult : string * Azure.ResponseError * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> -> Azure.ResourceManager.Resources.Models.WhatIfOperationResult
Public Shared Function WhatIfOperationResult (Optional status As String = Nothing, Optional error As ResponseError = Nothing, Optional changes As IEnumerable(Of WhatIfChange) = Nothing, Optional potentialChanges As IEnumerable(Of WhatIfChange) = Nothing, Optional diagnostics As IEnumerable(Of DeploymentDiagnosticsDefinition) = Nothing) As WhatIfOperationResult

Parameters

status
String

Status of the What-If operation.

error
ResponseError

Error when What-If operation fails.

changes
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

potentialChanges
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

diagnostics
IEnumerable<DeploymentDiagnosticsDefinition>

List of resource diagnostics detected by What-If operation.

Returns

A new WhatIfOperationResult instance for mocking.

Applies to