Skip to content
Docs Try Aspire

ResourceAnnotationMutationBehavior

Enum net10.0
📦 Aspire.Hosting v13.1.2
Specifies behavior of the IResourceBuilder`1.WithAnnotation method when adding an annotation to the IResource.Annotations collection of a resource.
namespace Aspire.Hosting.ApplicationModel;
public sealed enum ResourceAnnotationMutationBehavior
Append = 0
Append the annotation to the collection. Existing annotations will be kept.
Replace = 1
Replace the existing annotation. The existing annotation will be removed.