ParameterResource Constructor
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.
Initializes a new instance of ParameterResource.
public ParameterResource (string name, Func<Aspire.Hosting.ApplicationModel.ParameterDefault?,string> callback, bool secret = false);
new Aspire.Hosting.ApplicationModel.ParameterResource : string * Func<Aspire.Hosting.ApplicationModel.ParameterDefault, string> * bool -> Aspire.Hosting.ApplicationModel.ParameterResource
Public Sub New (name As String, callback As Func(Of ParameterDefault, String), Optional secret As Boolean = false)
Parameters
- name
- String
The name of the parameter resource.
- callback
- Func<ParameterDefault,String>
The callback function to retrieve the value of the parameter.
- secret
- Boolean
A flag indicating whether the parameter is secret.