Share via


Service.Ports Property

Definition

Represents a collection of port mappings for the service. Each mapping specifies how a container port is bound to a host port.

[YamlDotNet.Serialization.YamlMember(Alias="ports", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.List<string> Ports { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="ports", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.Ports : System.Collections.Generic.List<string> with get, set
Public Property Ports As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to