共用方式為


ArmDevTestLabsModelFactory.DevTestLabPolicySetResult Method

Definition

Initializes a new instance of DevTestLabPolicySetResult.

public static Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicySetResult DevTestLabPolicySetResult (bool? hasError = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyViolation> policyViolations = default);
static member DevTestLabPolicySetResult : Nullable<bool> * seq<Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicyViolation> -> Azure.ResourceManager.DevTestLabs.Models.DevTestLabPolicySetResult
Public Shared Function DevTestLabPolicySetResult (Optional hasError As Nullable(Of Boolean) = Nothing, Optional policyViolations As IEnumerable(Of DevTestLabPolicyViolation) = Nothing) As DevTestLabPolicySetResult

Parameters

hasError
Nullable<Boolean>

A value indicating whether this policy set evaluation has discovered violations.

policyViolations
IEnumerable<DevTestLabPolicyViolation>

The list of policy violations.

Returns

A new DevTestLabPolicySetResult instance for mocking.

Applies to