ParameterResource Constructor

Definition

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.

Applies to