# LabelSpecs

- Kind: `class`
- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Docker/Resources/ServiceNodes/Swarm/LabelSpecs.cs)
- Inherits: `Dictionary<string, string>`

Represents a collection of labels that can be associated with a Docker service. This class is used to define metadata in the form of key-value pairs.

## Definition

```csharp
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;

public sealed class LabelSpecs
    : System.Collections.Generic.Dictionary<string, string>
{
    // ...
}
```

## Constructors

- [LabelSpecs](/reference/api/csharp/aspire.hosting.docker/labelspecs/constructors.md#constructor)
