Skip to content
Docs Try Aspire

IResourceWithEnvironment.withEnvironmentExpression

Method
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IResourceWithEnvironment {
// ... omitted for brevity
withEnvironmentExpression(
name: string,
value: ReferenceExpression): IResourceWithEnvironment;
}

Signature

method withEnvironmentExpression builder
Adds an environment variable with a reference expression
withEnvironmentExpression(
name: string,
value: ReferenceExpression): IResourceWithEnvironment
name string
value ReferenceExpression
IResourceWithEnvironment

Defined on

This method is defined on the following type: