Freigeben über


ConnectionPropertyAnnotation Class

Definition

Annotation that creates a custom connection property value injected into environment variables when a resource is referenced using WithReference().

public sealed class ConnectionPropertyAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type ConnectionPropertyAnnotation = class
    interface IResourceAnnotation
Public NotInheritable Class ConnectionPropertyAnnotation
Implements IResourceAnnotation
Inheritance
ConnectionPropertyAnnotation
Implements

Constructors

Name Description
ConnectionPropertyAnnotation(String, ReferenceExpression)

Initializes a new instance of the ConnectionPropertyAnnotation class with the specified property name and reference expression.

Properties

Name Description
Name

Gets the name associated with the current instance.

Value

Gets the reference expression associated with this instance.

Applies to