Skip to content
Docs Try Aspire

addParameterWithValue

Function
📦 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

Applies to

This function is an extension method on the following types: