Skip to content
DocsTry Aspire
DocsTry

ParameterResource Constructors

ClassConstructors1 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)
{
// ...
}
}
namestringThe name of the parameter resource.
callbackFunc<ParameterDefault?, string>The callback function to retrieve the value of the parameter.
secretbooloptionalA flag indicating whether the parameter is secret.