Skip to content
Docs Try Aspire

ParameterResource Constructors

Class Constructors 1 member
Represents a parameter resource.
Constructor(string, Func<ParameterDefault?, string>, bool) Section titled Constructor(string, Func<ParameterDefault?, string>, bool)
Initializes a new instance of ParameterResource.
public class ParameterResource
{
public ParameterResource(
string name,
Func<ParameterDefault?, string> callback,
bool secret = false)
{
// ...
}
}
name string The name of the parameter resource.
callback Func<ParameterDefault?, string> The callback function to retrieve the value of the parameter.
secret bool optional A flag indicating whether the parameter is secret.