# ContainerBuildOptionsCallbackAnnotation Properties

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

Annotation that provides a callback to configure container build options for a resource.

## Callback

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

Gets the callback function that will be invoked to configure container build options.

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