ContainerPort Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Fluent.Models.ContainerPort : int * string -> Microsoft.Azure.Management.ContainerInstance.Fluent.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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET