ParameterResourceBuilderExtensions.AddParameter 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.
Adds a parameter resource to the application.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> AddParameter (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, bool secret = false);
static member AddParameter : Aspire.Hosting.IDistributedApplicationBuilder * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource>
<Extension()>
Public Function AddParameter (builder As IDistributedApplicationBuilder, name As String, Optional secret As Boolean = false) As IResourceBuilder(Of ParameterResource)
Parameters
- builder
- IDistributedApplicationBuilder
Distributed application builder
- name
- String
Name of parameter resource
- secret
- Boolean
Optional flag indicating whether the parameter should be regarded as secret.
Returns
Resource builder for the parameter.
Exceptions
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for