共用方式為


PolicySettings Constructors

Definition

Overloads

PolicySettings()

Initializes a new instance of the PolicySettings class.

PolicySettings(WebApplicationFirewallEnabledState, WebApplicationFirewallMode, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the PolicySettings class.

PolicySettings()

Initializes a new instance of the PolicySettings class.

public PolicySettings ();
Public Sub New ()

Applies to

PolicySettings(WebApplicationFirewallEnabledState, WebApplicationFirewallMode, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the PolicySettings class.

public PolicySettings (Microsoft.Azure.Management.Network.Fluent.Models.WebApplicationFirewallEnabledState state = default, Microsoft.Azure.Management.Network.Fluent.Models.WebApplicationFirewallMode mode = default, bool? requestBodyCheck = default, int? maxRequestBodySizeInKb = default, int? fileUploadLimitInMb = default);
new Microsoft.Azure.Management.Network.Fluent.Models.PolicySettings : Microsoft.Azure.Management.Network.Fluent.Models.WebApplicationFirewallEnabledState * Microsoft.Azure.Management.Network.Fluent.Models.WebApplicationFirewallMode * Nullable<bool> * Nullable<int> * Nullable<int> -> Microsoft.Azure.Management.Network.Fluent.Models.PolicySettings
Public Sub New (Optional state As WebApplicationFirewallEnabledState = Nothing, Optional mode As WebApplicationFirewallMode = Nothing, Optional requestBodyCheck As Nullable(Of Boolean) = Nothing, Optional maxRequestBodySizeInKb As Nullable(Of Integer) = Nothing, Optional fileUploadLimitInMb As Nullable(Of Integer) = Nothing)

Parameters

state
WebApplicationFirewallEnabledState

Describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'

mode
WebApplicationFirewallMode

Describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'

requestBodyCheck
Nullable<Boolean>

Whether to allow WAF to check request Body.

maxRequestBodySizeInKb
Nullable<Int32>

Maximum request body size in Kb for WAF.

fileUploadLimitInMb
Nullable<Int32>

Maximum file upload size in Mb for WAF.

Applies to