ParameterResourceBuilderExtensions.CreateParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ParameterResource.
public static Aspire.Hosting.ApplicationModel.ParameterResource CreateParameter(Aspire.Hosting.IDistributedApplicationBuilder builder, string name, bool secret);
static member CreateParameter : Aspire.Hosting.IDistributedApplicationBuilder * string * bool -> Aspire.Hosting.ApplicationModel.ParameterResource
Public Function CreateParameter (builder As IDistributedApplicationBuilder, name As String, secret As Boolean) As ParameterResource
Parameters
- builder
- IDistributedApplicationBuilder
Distributed application builder
- name
- String
Name of parameter resource
- secret
- Boolean
Flag indicating whether the parameter should be regarded as secret.
Returns
The created ParameterResource.
Remarks
The value will be saved to the app host project's user secrets store when IsRunMode is true
.