ArmContainerInstanceModelFactory.ContainerPort Method
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.
public static Azure.ResourceManager.ContainerInstance.Models.ContainerPort ContainerPort(Azure.ResourceManager.ContainerInstance.Models.ContainerNetworkProtocol? protocol = default, int port = 0);
static member ContainerPort : Nullable<Azure.ResourceManager.ContainerInstance.Models.ContainerNetworkProtocol> * int -> Azure.ResourceManager.ContainerInstance.Models.ContainerPort
Public Shared Function ContainerPort (Optional protocol As Nullable(Of ContainerNetworkProtocol) = Nothing, Optional port As Integer = 0) As ContainerPort
Parameters
- protocol
- Nullable<ContainerNetworkProtocol>
The protocol associated with the port.
- port
- Int32
The port number exposed within the container group.
Returns
A new ContainerPort instance for mocking.