Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.addParameterWithGeneratedValue

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

Signature

methodaddParameterWithGeneratedValuebuilder
Adds a parameter with a generated default value
addParameterWithGeneratedValue(
name: string,
value: GenerateParameterDefault,
secret?: boolean,
persist?: boolean): ParameterResource
namestring
valueGenerateParameterDefault
secretbooleanoptional= False
persistbooleanoptional= False
ParameterResource

Defined on

This method is defined on the following type: