Freigeben über


ArmDevTestLabsModelFactory.DevTestLabPolicySetResult Methode

Definition

Initialisiert eine neue instance von 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

Parameter

hasError
Nullable<Boolean>

Ein Wert, der angibt, ob diese Richtliniensatzauswertung Verstöße festgestellt hat.

policyViolations
IEnumerable<DevTestLabPolicyViolation>

Die Liste der Richtlinienverstöße.

Gibt zurück

Eine neue DevTestLabPolicySetResult instance zum Mocking.

Gilt für: