RegistryTargetAnnotation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Annotation that indicates a resource should use a specific container registry as its default target.
public sealed class RegistryTargetAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type RegistryTargetAnnotation = class
interface IResourceAnnotation
Public NotInheritable Class RegistryTargetAnnotation
Implements IResourceAnnotation
- Inheritance
-
RegistryTargetAnnotation
- Implements
Remarks
This annotation is automatically added to resources when a container registry is added to the application model. It provides a default registry for resources that don't have an explicit ContainerRegistryReferenceAnnotation.
Constructors
| Name | Description |
|---|---|
| RegistryTargetAnnotation(IContainerRegistry) |
Annotation that indicates a resource should use a specific container registry as its default target. |
Properties
| Name | Description |
|---|---|
| Registry |
Gets the container registry resource. |