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

NetworkRuleSet 构造函数

定义

重载

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

NetworkRuleSet(DefaultAction, Bypass, IList<VirtualNetworkRule>, IList<IPRule>)

初始化 NetworkRuleSet 类的新实例。

NetworkRuleSet()

初始化 NetworkRuleSet 类的新实例。

public NetworkRuleSet ();
Public Sub New ()

适用于

NetworkRuleSet(DefaultAction, Bypass, IList<VirtualNetworkRule>, IList<IPRule>)

初始化 NetworkRuleSet 类的新实例。

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

参数

defaultAction
DefaultAction

指定在没有其他规则匹配时允许或拒绝的默认操作。 可能的值包括:“Allow”、“Deny”

bypass
Bypass

指定是否绕过日志记录/指标/AzureServices 的流量。 可能的值为日志记录的任意组合|指标 |AzureServices (例如,“日志记录,指标”) ,或无,以绕过任何这些流量。 可能的值包括:“None”、“Logging”、“Metrics”、“AzureServices”

virtualNetworkRules
IList<VirtualNetworkRule>

设置虚拟网络规则

ipRules
IList<IPRule>

设置 IP ACL 规则

适用于