Share via


Deploy.Labels Property

Definition

Represents the label configurations for a deployable service in Docker.

[YamlDotNet.Serialization.YamlMember(Alias="labels")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.LabelSpecs? Labels { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="labels")>]
member this.Labels : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.LabelSpecs with get, set
Public Property Labels As LabelSpecs

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is used to define additional metadata, typically in the form of key-value pairs, that can be attached to services for organizational or descriptive purposes.

Applies to