# ResourceSnapshotAnnotation Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResourceSnapshotAnnotation](/reference/api/csharp/aspire.hosting/resourcesnapshotannotation.md)
- Kind: `Constructors`
- Members: `1`

An annotation that represents the initial snapshot of a resource.

## ResourceSnapshotAnnotation(CustomResourceSnapshot)

- Name: `Constructor(CustomResourceSnapshot)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ResourceSnapshotAnnotation.cs#L9-L14)

An annotation that represents the initial snapshot of a resource.

```csharp
public class ResourceSnapshotAnnotation
{
    public ResourceSnapshotAnnotation(
        CustomResourceSnapshot initialSnapshot)
    {
        // ...
    }
}
```

## Parameters

- `initialSnapshot` ([CustomResourceSnapshot](/reference/api/csharp/aspire.hosting/customresourcesnapshot.md))
