共用方式為


CustomRule Class

Definition

Defines the common attributes for a custom rule that can be included in a waf policy

public class CustomRule
type CustomRule = class
Public Class CustomRule
Inheritance
CustomRule
Derived

Constructors

CustomRule()

Initializes a new instance of the CustomRule class.

CustomRule(String, Int32, IList<MatchCondition>, String, String)

Initializes a new instance of the CustomRule class.

Properties

Action

Gets or sets describes what action to be applied when rule matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'

EnabledState

Gets or sets describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: 'Disabled', 'Enabled'

MatchConditions

Gets or sets list of match conditions.

Name

Gets or sets defines the name of the custom rule

Priority

Gets or sets defines in what order this rule be evaluated in the overall list of custom rules

Methods

Validate()

Validate the object.

Applies to