ComposeFile.AddConfig(Config) 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.
Adds a new config entry to the Compose file.
public Aspire.Hosting.Docker.Resources.ComposeFile AddConfig(Aspire.Hosting.Docker.Resources.ComposeNodes.Config config);
member this.AddConfig : Aspire.Hosting.Docker.Resources.ComposeNodes.Config -> Aspire.Hosting.Docker.Resources.ComposeFile
Public Function AddConfig (config As Config) As ComposeFile
Parameters
- config
- Config
The config instance to add to the Compose file.
Returns
The updated ComposeFile instance with the added config.