Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

EnvironmentEditor.set

Method
📦 Aspire.Hosting v13.6.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
namestring
valuestring | ReferenceExpression | EndpointReference | ParameterResource | IResourceWithConnectionString | IExpressionValue

Defined on

This method is defined on the following type: