你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WebApplicationFirewallCustomRule 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WebApplicationFirewallCustomRule() |
初始化 WebApplicationFirewallCustomRule 类的新实例。 |
WebApplicationFirewallCustomRule(Int32, String, IList<MatchCondition>, String, String, String) |
初始化 WebApplicationFirewallCustomRule 类的新实例。 |
WebApplicationFirewallCustomRule()
初始化 WebApplicationFirewallCustomRule 类的新实例。
public WebApplicationFirewallCustomRule();
Public Sub New ()
适用于
WebApplicationFirewallCustomRule(Int32, String, IList<MatchCondition>, String, String, String)
初始化 WebApplicationFirewallCustomRule 类的新实例。
public WebApplicationFirewallCustomRule(int priority, string ruleType, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.MatchCondition> matchConditions, string action, string name = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.WebApplicationFirewallCustomRule : int * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.MatchCondition> * string * string * string -> Microsoft.Azure.Management.Network.Models.WebApplicationFirewallCustomRule
Public Sub New (priority As Integer, ruleType As String, matchConditions As IList(Of MatchCondition), action As String, Optional name As String = Nothing, Optional etag As String = Nothing)
参数
- priority
- Int32
规则的优先级。 值较低的规则将在具有较高值的规则之前进行评估。
- ruleType
- String
规则类型。 可能的值包括:“MatchRule”、“Invalid”
- matchConditions
- IList<MatchCondition>
匹配条件列表。
- action
- String
操作的类型。 可能的值包括:“Allow”、“Block”、“Log”
- name
- String
策略中唯一的资源的名称。 此名称可用于访问资源。
- etag
- String
一个唯一的只读字符串,每当资源更新时都会更改。