# IResource.hasSerializedAnnotation

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [IResource](/reference/api/typescript/aspire.hosting/iresource.md)
- Version: `17.0.0`
- Kind: `method`

Determines whether a resource has a serialized ATS annotation with the specified ID.

## Definition

```typescript
interface IResource {
  // ... omitted for brevity
  hasSerializedAnnotation(annotationId: string): boolean;
}
```

## Signature

```typescript
hasSerializedAnnotation(annotationId: string): boolean
```

## Parameters

- `annotationId` (`string`)

## Returns

`boolean`

## Defined on

- [IResource](/reference/api/typescript/aspire.hosting/iresource.md) -- `interface`
