Skip to content
Docs Try Aspire

ConnectionPropertyAnnotation Constructors

Class Constructors 1 member
Annotation that creates a custom connection property value injected into environment variables when a resource is referenced using WithReference().
Constructor(string, ReferenceExpression) Section titled Constructor(string, ReferenceExpression)
Initializes a new instance of the ConnectionPropertyAnnotation class with the specified property name and reference expression.
public sealed class ConnectionPropertyAnnotation
{
public ConnectionPropertyAnnotation(
string name,
ReferenceExpression referenceExpression)
{
// ...
}
}
name string The name of the connection property to annotate. Cannot be null or empty.
referenceExpression ReferenceExpression The reference expression associated with the connection property. Cannot be null.