你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkRuleCondition 构造函数

定义

重载

NetworkRuleCondition()

初始化 NetworkRuleCondition 类的新实例。

NetworkRuleCondition(String, String, IList<FirewallPolicyRuleConditionNetworkProtocol>, IList<String>, IList<String>, IList<String>)

初始化 NetworkRuleCondition 类的新实例。

NetworkRuleCondition()

初始化 NetworkRuleCondition 类的新实例。

public NetworkRuleCondition ();
Public Sub New ()

适用于

NetworkRuleCondition(String, String, IList<FirewallPolicyRuleConditionNetworkProtocol>, IList<String>, IList<String>, IList<String>)

初始化 NetworkRuleCondition 类的新实例。

public NetworkRuleCondition (string name = default, string description = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.FirewallPolicyRuleConditionNetworkProtocol> ipProtocols = default, System.Collections.Generic.IList<string> sourceAddresses = default, System.Collections.Generic.IList<string> destinationAddresses = default, System.Collections.Generic.IList<string> destinationPorts = default);
new Microsoft.Azure.Management.Network.Fluent.Models.NetworkRuleCondition : string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.FirewallPolicyRuleConditionNetworkProtocol> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Network.Fluent.Models.NetworkRuleCondition
Public Sub New (Optional name As String = Nothing, Optional description As String = Nothing, Optional ipProtocols As IList(Of FirewallPolicyRuleConditionNetworkProtocol) = Nothing, Optional sourceAddresses As IList(Of String) = Nothing, Optional destinationAddresses As IList(Of String) = Nothing, Optional destinationPorts As IList(Of String) = Nothing)

参数

name
String

规则条件的名称。

description
String

规则条件的说明。

ipProtocols
IList<FirewallPolicyRuleConditionNetworkProtocol>

FirewallPolicyRuleConditionNetworkProtocols 数组。

sourceAddresses
IList<String>

此规则的源 IP 地址列表。

destinationAddresses
IList<String>

目标 IP 地址或服务标记的列表。

destinationPorts
IList<String>

目标端口列表。

适用于