# EnvironmentCallbackAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [EnvironmentCallbackAnnotation](/reference/api/csharp/aspire.hosting/environmentcallbackannotation.md)
- Kind: `Properties`
- Members: `1`

Represents an annotation that provides a callback to modify the environment variables of an application.

## Callback

- Name: `Callback`
- Modifiers: `get`
- Returns: `Func<EnvironmentCallbackContext, Task>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/EnvironmentCallbackAnnotation.cs)

Gets or sets the callback action to be executed when the environment is being built.

```csharp
public Func<EnvironmentCallbackContext, Task> Callback { get; }
```
