Compartir a través de


ArmPolicyInsightsModelFactory.FieldRestriction Método

Definición

Inicializa una nueva instancia de FieldRestriction.

public static Azure.ResourceManager.PolicyInsights.Models.FieldRestriction FieldRestriction (Azure.ResourceManager.PolicyInsights.Models.FieldRestrictionResult? result = default, string defaultValue = default, System.Collections.Generic.IEnumerable<string> values = default, Azure.ResourceManager.PolicyInsights.Models.PolicyReference policy = default);
static member FieldRestriction : Nullable<Azure.ResourceManager.PolicyInsights.Models.FieldRestrictionResult> * string * seq<string> * Azure.ResourceManager.PolicyInsights.Models.PolicyReference -> Azure.ResourceManager.PolicyInsights.Models.FieldRestriction
Public Shared Function FieldRestriction (Optional result As Nullable(Of FieldRestrictionResult) = Nothing, Optional defaultValue As String = Nothing, Optional values As IEnumerable(Of String) = Nothing, Optional policy As PolicyReference = Nothing) As FieldRestriction

Parámetros

result
Nullable<FieldRestrictionResult>

Tipo de restricción que se impone en el campo.

defaultValue
String

Valor que la directiva establecerá para el campo si el usuario no proporciona un valor.

values
IEnumerable<String>

Los valores que la directiva requiere o deniega para el campo.

policy
PolicyReference

Detalles de la directiva que está causando la restricción de campo.

Devoluciones

FieldRestriction Nueva instancia para simular.

Se aplica a