Partilhar via


Rule Constructors

Definition

Overloads

Rule()

Initializes a new instance of the Rule class.

Rule(String, String, Nullable<Int32>, IList<String>, IList<String>)

Initializes a new instance of the Rule class.

Rule()

Initializes a new instance of the Rule class.

public Rule ();
Public Sub New ()

Applies to

Rule(String, String, Nullable<Int32>, IList<String>, IList<String>)

Initializes a new instance of the Rule class.

public Rule (string name = default, string direction = default, int? destinationPort = default, System.Collections.Generic.IList<string> protocols = default, System.Collections.Generic.IList<string> ipAddresses = default);
new Microsoft.Azure.Management.Security.Models.Rule : string * string * Nullable<int> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Security.Models.Rule
Public Sub New (Optional name As String = Nothing, Optional direction As String = Nothing, Optional destinationPort As Nullable(Of Integer) = Nothing, Optional protocols As IList(Of String) = Nothing, Optional ipAddresses As IList(Of String) = Nothing)

Parameters

name
String

The name of the rule

direction
String

The rule's direction Possible values include: 'Inbound', 'Outbound'

destinationPort
Nullable<Int32>

The rule's destination port

protocols
IList<String>

The rule's transport protocols

ipAddresses
IList<String>

The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol

Applies to