Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

HasSerializedAnnotation

Method
📦 Aspire.Hosting v17.0.0
func (Resource) HasSerializedAnnotation(annotationId string) (bool, error)

Signature

methodHasSerializedAnnotation
Determines whether a resource has a serialized ATS annotation with the specified ID.
HasSerializedAnnotation(annotationId string) (bool, error)
annotationIdstringThe stable annotation identifier.
(bool, error)

true if the annotation exists; otherwise, false.

Returns (bool, error).

Applies to

This method applies to the following types: