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

NetworkRuleSet 构造函数

定义

重载

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

NetworkRuleSet(NetworkRuleBypassOptions, NetworkRuleAction, IList<IPRule>, IList<VirtualNetworkRule>)

初始化 NetworkRuleSet 类的新实例。

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

public NetworkRuleSet ();
Public Sub New ()

适用于

NetworkRuleSet(NetworkRuleBypassOptions, NetworkRuleAction, IList<IPRule>, IList<VirtualNetworkRule>)

初始化 NetworkRuleSet 类的新实例。

public NetworkRuleSet (Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleBypassOptions bypass = default, Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleAction defaultAction = default, System.Collections.Generic.IList<Microsoft.Azure.Management.KeyVault.Fluent.Models.IPRule> ipRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.KeyVault.Fluent.Models.VirtualNetworkRule> virtualNetworkRules = default);
new Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleSet : Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleBypassOptions * Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleAction * System.Collections.Generic.IList<Microsoft.Azure.Management.KeyVault.Fluent.Models.IPRule> * System.Collections.Generic.IList<Microsoft.Azure.Management.KeyVault.Fluent.Models.VirtualNetworkRule> -> Microsoft.Azure.Management.KeyVault.Fluent.Models.NetworkRuleSet
Public Sub New (Optional bypass As NetworkRuleBypassOptions = Nothing, Optional defaultAction As NetworkRuleAction = Nothing, Optional ipRules As IList(Of IPRule) = Nothing, Optional virtualNetworkRules As IList(Of VirtualNetworkRule) = Nothing)

参数

bypass
NetworkRuleBypassOptions

告知哪些流量可以绕过网络规则。 这可以是“AzureServices”或“None”。 如果未指定,则默认值为“AzureServices”。 可能的值包括:“AzureServices”、“None”

defaultAction
NetworkRuleAction

ipRules 和 virtualNetworkRules 中没有规则匹配时的默认操作。 仅在评估 bypass 属性后,才使用此功能。 可能的值包括:“Allow”、“Deny”

ipRules
IList<IPRule>

IP 地址规则的列表。

virtualNetworkRules
IList<VirtualNetworkRule>

虚拟网络规则的列表。

适用于