# ContainerEnvVarConstruct

- Kind: `class`
- Package: [Aspire.Hosting.Radius](/reference/api/csharp/aspire.hosting.radius.md)
- Version: `13.5.3-preview.1.26425.3`
- Namespace: `Aspire.Hosting.Radius.Publishing.Constructs`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Radius/Publishing/Constructs/ContainerEnvVarConstruct.cs)
- Inherits: `ProvisionableConstruct`

Represents a single environment-variable entry in a container's `env` block.

## Definition

```csharp
namespace Aspire.Hosting.Radius.Publishing.Constructs;

public sealed class ContainerEnvVarConstruct
    : Azure.Provisioning.Primitives.ProvisionableConstruct
{
    // ...
}
```

## Remarks

The Radius container schema models `env` as a map keyed by the variable name, where each entry is an object carrying a `value` (or a `valueFrom` source). This construct emits the `value` form. A secret-bound value is assigned a Bicep `param` reference (to an `@secure()` parameter) so the literal secret never appears in the published artifact. See: https://github.com/radius-project/radius/blob/main/eng/design-notes/extensibility/2025-08-container-resource-type.md

## Constructors

- [ContainerEnvVarConstruct](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct/constructors.md#constructor)

## Properties

- [Value](/reference/api/csharp/aspire.hosting.radius/containerenvvarconstruct/properties.md#value) : `BicepValue<string>` `get; set` -- The environment variable value (a literal, or a reference to a Bicep parameter).
