ComposeFile.Networks Property
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.
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.