Skip to content
Docs Try Aspire
Docs Try

IResourceWithEnvironment.withEnvironment

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEnvironment {
// ... omitted for brevity
withEnvironment(
name: string,
value: IExpressionValue): IResourceWithEnvironment;
}

Signature

method withEnvironment builder
Sets an environment variable
withEnvironment(
name: string,
value: IExpressionValue): IResourceWithEnvironment
name string
value IExpressionValue
IResourceWithEnvironment

Defined on

This method is defined on the following type: