Compartir a través de


ArmPolicyInsightsModelFactory.FieldRestrictions Método

Definición

Inicializa una nueva instancia de FieldRestrictions.

public static Azure.ResourceManager.PolicyInsights.Models.FieldRestrictions FieldRestrictions (string field = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PolicyInsights.Models.FieldRestriction> restrictions = default);
static member FieldRestrictions : string * seq<Azure.ResourceManager.PolicyInsights.Models.FieldRestriction> -> Azure.ResourceManager.PolicyInsights.Models.FieldRestrictions
Public Shared Function FieldRestrictions (Optional field As String = Nothing, Optional restrictions As IEnumerable(Of FieldRestriction) = Nothing) As FieldRestrictions

Parámetros

field
String

Nombre del campo. Puede ser una propiedad de nivel superior como "name" o "type" o un alias de campo Azure Policy.

restrictions
IEnumerable<FieldRestriction>

Restricciones colocadas en ese campo por directiva.

Devoluciones

FieldRestrictions Nueva instancia de para simular.

Se aplica a