Skip to content
Docs Try Aspire

IResourceWithEnvironment.withEnvironmentParameter

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

Signature

method withEnvironmentParameter builder
Sets an environment variable from a parameter resource
withEnvironmentParameter(
name: string,
parameter: ParameterResource): IResourceWithEnvironment
name string
parameter ParameterResource
IResourceWithEnvironment

Defined on

This method is defined on the following type: