共用方式為


FieldRestriction Constructors

Definition

Overloads

FieldRestriction()

Initializes a new instance of the FieldRestriction class.

FieldRestriction(String, String, IList<String>, PolicyReference)

Initializes a new instance of the FieldRestriction class.

FieldRestriction()

Initializes a new instance of the FieldRestriction class.

public FieldRestriction ();
Public Sub New ()

Applies to

FieldRestriction(String, String, IList<String>, PolicyReference)

Initializes a new instance of the FieldRestriction class.

public FieldRestriction (string result = default, string defaultValue = default, System.Collections.Generic.IList<string> values = default, Microsoft.Azure.Management.PolicyInsights.Models.PolicyReference policy = default);
new Microsoft.Azure.Management.PolicyInsights.Models.FieldRestriction : string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.PolicyInsights.Models.PolicyReference -> Microsoft.Azure.Management.PolicyInsights.Models.FieldRestriction
Public Sub New (Optional result As String = Nothing, Optional defaultValue As String = Nothing, Optional values As IList(Of String) = Nothing, Optional policy As PolicyReference = Nothing)

Parameters

result
String

The type of restriction that is imposed on the field. Possible values include: 'Required', 'Removed', 'Deny'

defaultValue
String

The value that policy will set for the field if the user does not provide a value.

values
IList<String>

The values that policy either requires or denies for the field.

policy
PolicyReference

The details of the policy that is causing the field restriction.

Applies to