ComposeFile.Networks Property

Definition

Represents the collection of networks defined in a Docker Compose file.

[YamlDotNet.Serialization.YamlMember(Alias="networks", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.Dictionary<string,Aspire.Hosting.Docker.Resources.ComposeNodes.Network> Networks { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="networks", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.Networks : System.Collections.Generic.Dictionary<string, Aspire.Hosting.Docker.Resources.ComposeNodes.Network> with get, set
Public Property Networks As Dictionary(Of String, Network)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

Each key in the dictionary represents the name of the network, and the value is an instance of the Network class, which encapsulates the details and configurations of the corresponding network.

Applies to