NetworkSecurityGroupRule Constructors

Definition

Overloads

NetworkSecurityGroupRule()

Initializes a new instance of the NetworkSecurityGroupRule class.

NetworkSecurityGroupRule(Int32, NetworkSecurityGroupRuleAccess, String, IList<String>)

Initializes a new instance of the NetworkSecurityGroupRule class.

NetworkSecurityGroupRule()

Initializes a new instance of the NetworkSecurityGroupRule class.

public NetworkSecurityGroupRule ();
Public Sub New ()

Applies to

NetworkSecurityGroupRule(Int32, NetworkSecurityGroupRuleAccess, String, IList<String>)

Initializes a new instance of the NetworkSecurityGroupRule class.

public NetworkSecurityGroupRule (int priority, Microsoft.Azure.Batch.Protocol.Models.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix, System.Collections.Generic.IList<string> sourcePortRanges = default);
new Microsoft.Azure.Batch.Protocol.Models.NetworkSecurityGroupRule : int * Microsoft.Azure.Batch.Protocol.Models.NetworkSecurityGroupRuleAccess * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Batch.Protocol.Models.NetworkSecurityGroupRule
Public Sub New (priority As Integer, access As NetworkSecurityGroupRuleAccess, sourceAddressPrefix As String, Optional sourcePortRanges As IList(Of String) = Nothing)

Parameters

priority
Int32

The priority for this rule.

access
NetworkSecurityGroupRuleAccess

The action that should be taken for a specified IP address, subnet range or tag.

sourceAddressPrefix
String

The source address prefix or tag to match for the rule.

sourcePortRanges
IList<String>

The source port ranges to match for the rule.

Applies to