Skip to content
Docs Try Aspire

IDistributedApplicationBuilder.addParameterWithValue

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

Signature

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

Defined on

This method is defined on the following type: