EnvironmentEditor.set

Method
📦 Aspire.Hosting v17.0.0
interface EnvironmentEditor {
// ... omitted for brevity
set(
name: string,
value: string | ReferenceExpression | EndpointReference | ParameterResource | IResourceWithConnectionString | IExpressionValue): void;
}

Signature

methodset
Sets an environment variable.
set(
name: string,
value: string | ReferenceExpression | EndpointReference | ParameterResource | IResourceWithConnectionString | IExpressionValue): void
namestringThe name of the environment variable.
valuestring | ReferenceExpression | EndpointReference | ParameterResource | IResourceWithConnectionString | IExpressionValueThe value to assign to the environment variable.

Defined on

This method is defined on the following type: