Skip to content
Docs Try Aspire
Docs Try

IDistributedApplicationBuilder.addParameter

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addParameter(
name: string,
value?: string,
publishValueAsDefault?: boolean,
secret?: boolean): ParameterResource;
}

Signature

method addParameter builder
Adds a parameter resource
addParameter(
name: string,
value?: string,
publishValueAsDefault?: boolean,
secret?: boolean): ParameterResource
name string
value string optional
publishValueAsDefault boolean optional = False
secret boolean optional = False
ParameterResource

Defined on

This method is defined on the following type: