ConnectionPropertyAnnotation 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 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. |