ResourceAnnotationMutationBehavior Enum

Definition

Specifies behavior of the WithAnnotation<TAnnotation>(ResourceAnnotationMutationBehavior) method when adding an annotation to the Annotations collection of a resource.

C#
public enum ResourceAnnotationMutationBehavior
Inheritance
ResourceAnnotationMutationBehavior

Fields

Name Value Description
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.

Applies to

產品 版本
.NET Aspire 8.0.0, 9.0.0, 9.1.0