Skip to content
Docs Try Aspire

IResourceWithEnvironment.withEnvironment

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

Signature

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

Defined on

This method is defined on the following type: