# EnvironmentVariableSnapshot Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [EnvironmentVariableSnapshot](/reference/api/csharp/aspire.hosting/environmentvariablesnapshot.md)
- Kind: `Properties`
- Members: `3`

A snapshot of an environment variable.

## IsFromSpec

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

Determines if this environment variable was defined in the resource explicitly or computed (for e.g. inherited from the process hierarchy).

```csharp
public bool IsFromSpec { get; init; }
```

## Name

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

The name of the environment variable.

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

## Value

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

The value of the environment variable.

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