共用方式為


InboundNatPool Constructor

Definition

Initializes a new instance of the InboundNatPool class.

public InboundNatPool (string name, Microsoft.Azure.Batch.Common.InboundEndpointProtocol protocol, int backendPort, int frontendPortRangeStart, int frontendPortRangeEnd, System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Batch.NetworkSecurityGroupRule> networkSecurityGroupRules = default);
new Microsoft.Azure.Batch.InboundNatPool : string * Microsoft.Azure.Batch.Common.InboundEndpointProtocol * int * int * int * System.Collections.Generic.IReadOnlyList<Microsoft.Azure.Batch.NetworkSecurityGroupRule> -> Microsoft.Azure.Batch.InboundNatPool
Public Sub New (name As String, protocol As InboundEndpointProtocol, backendPort As Integer, frontendPortRangeStart As Integer, frontendPortRangeEnd As Integer, Optional networkSecurityGroupRules As IReadOnlyList(Of NetworkSecurityGroupRule) = Nothing)

Parameters

name
String

The name of the endpoint.

protocol
InboundEndpointProtocol

The protocol of the endpoint.

backendPort
Int32

The port number on the compute node.

frontendPortRangeStart
Int32

The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual compute nodes.

frontendPortRangeEnd
Int32

The last port number in the range of external ports that will be used to provide inbound access to the backendPort on individual compute nodes.

networkSecurityGroupRules
IReadOnlyList<NetworkSecurityGroupRule>

A list of network security group rules that will be applied to the endpoint.

Applies to