Skip to content
Docs Try Aspire

Config Properties

Class Properties 4 members
Represents a configuration object in a Docker Compose file.
Content Section titled Content nullable string?
Gets or sets the contents of the configuration file. This property is used to specify the actual configuration data that will be included in the Docker Compose file.
public string? Content { get; set; }
External Section titled External nullable bool?
Indicates whether the configuration is external to the current project context. When set to true, the configuration will not be managed or created by the Compose file; instead, it references an existing resource outside the current scope. If null, the external status is not explicitly specified.
public bool? External { get; set; }
File Section titled File nullable string?
Gets or sets the path to the configuration file. This property is used to specify the file containing the configuration data for the service or component.
public string? File { get; set; }
Labels Section titled Labels Dictionary<string, string>
Represents a collection of key-value pairs used as metadata for configuration objects. The labels provide additional descriptive information, which can be utilized for tagging, grouping, or identification purposes.
public Dictionary<string, string> Labels { get; set; }