Udostępnij za pośrednictwem


ContainerPort Constructors

Definition

Overloads

ContainerPort()

Initializes a new instance of the ContainerPort class.

ContainerPort(Int32, String)

Initializes a new instance of the ContainerPort class.

ContainerPort()

Initializes a new instance of the ContainerPort class.

public ContainerPort ();
Public Sub New ()

Applies to

ContainerPort(Int32, String)

Initializes a new instance of the ContainerPort class.

public ContainerPort (int port, string protocol = default);
new Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort : int * string -> Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort
Public Sub New (port As Integer, Optional protocol As String = Nothing)

Parameters

port
Int32

The port number exposed within the container group.

protocol
String

The protocol associated with the port. Possible values include: 'TCP', 'UDP'

Applies to