# CapturedEnvironmentVariable Constructors

- Package: [Aspire.Hosting.Docker](/reference/api/csharp/aspire.hosting.docker.md)
- Type: [CapturedEnvironmentVariable](/reference/api/csharp/aspire.hosting.docker/capturedenvironmentvariable.md)
- Kind: `Constructors`
- Members: `1`

Represents a captured environment variable that will be written to the .env file adjacent to the Docker Compose file.

## CapturedEnvironmentVariable

- Name: `Constructor`

```csharp
public sealed class CapturedEnvironmentVariable
{
    public CapturedEnvironmentVariable()
    {
        // ...
    }
}
```
