Share via


ComposeFile.AddConfig(Config) Method

Definition

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.

Applies to