# DockerBuildArg

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DockerBuildArg.cs)

Represents a name/value pair, used to satisfy the `docker builder --build-arg <NAME>[=<VALUE>]` command switch. For more information, see [https://docs.docker.com/reference/cli/docker/image/build/#build-arg](https://docs.docker.com/reference/cli/docker/image/build/#build-arg).

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class DockerBuildArg
{
    // ...
}
```

## Constructors

- [DockerBuildArg(string, object?)](/reference/api/csharp/aspire.hosting/dockerbuildarg/constructors.md#constructor-string-object) -- Represents a name/value pair, used to satisfy the `docker builder --build-arg <NAME>[=<VALUE>]` command switch. For more information, see [https://docs.docker.com/reference/cli/docker/image/build/#build-arg](https://docs.docker.com/reference/cli/docker/image/build/#build-arg).

## Properties

- [Name](/reference/api/csharp/aspire.hosting/dockerbuildarg/properties.md#name) : `string` `get; init` -- Gets or initializes the name part of the `docker builder --build-arg <NAME>[=<VALUE>]`.
- [Value](/reference/api/csharp/aspire.hosting/dockerbuildarg/properties.md#value) : `object?` `get; init` -- Gets or initializes the value part of the `docker builder --build-arg <NAME>[=<VALUE>]`.
