ContainerPort Class
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.
The port exposed on the container instance.
public class ContainerPort : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ContainerInstance.Models.ContainerPort>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ContainerInstance.Models.ContainerPort>
type ContainerPort = class
interface IJsonModel<ContainerPort>
interface IPersistableModel<ContainerPort>
Public Class ContainerPort
Implements IJsonModel(Of ContainerPort), IPersistableModel(Of ContainerPort)
- Inheritance
-
ContainerPort
- Implements
Constructors
ContainerPort(Int32) |
Initializes a new instance of ContainerPort. |
Properties
Port |
The port number exposed within the container group. |
Protocol |
The protocol associated with the port. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<ContainerPort>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ContainerPort>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ContainerPort>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ContainerPort>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ContainerPort>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |