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

Port 构造函数

定义

重载

Port()

初始化 Port 类的新实例。

Port(Int32, String)

初始化 Port 类的新实例。

Port()

初始化 Port 类的新实例。

public Port ();
Public Sub New ()

适用于

Port(Int32, String)

初始化 Port 类的新实例。

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

参数

portProperty
Int32

端口号。

protocol
String

与端口关联的协议。 可能的值包括:“TCP”、“UDP”

适用于