# DockerBuildArg Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DockerBuildArg](/reference/api/csharp/aspire.hosting/dockerbuildarg.md)
- Kind: `Properties`
- Members: `2`

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).

## Name

- Name: `Name`
- Modifiers: `get; init`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DockerBuildArg.cs)

Gets or initializes the name part of the `docker builder --build-arg <NAME>[=<VALUE>]`.

```csharp
public string Name { get; init; }
```

## Value

- Name: `Value`
- Modifiers: `nullable` `get; init`
- Returns: `object?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/DockerBuildArg.cs)

Gets or initializes the value part of the `docker builder --build-arg <NAME>[=<VALUE>]`.

```csharp
public object? Value { get; init; }
```
