Skip to content
Docs Try Aspire

PostgresServerResource Constructors

Class Constructors 1 member
A resource that represents a PostgreSQL container.
Constructor(string, ParameterResource?, ParameterResource) Section titled Constructor(string, ParameterResource?, ParameterResource)
Initializes a new instance of the PostgresServerResource class.
public class PostgresServerResource
{
public PostgresServerResource(
string name,
ParameterResource? userName,
ParameterResource password)
{
// ...
}
}
name string The name of the resource.
userName ParameterResource? A parameter that contains the PostgreSQL server user name, or null to use a default value.
password ParameterResource A parameter that contains the PostgreSQL server password.