Skip to content
DocsTry Aspire
DocsTry

PostgresServerResource Constructors

ClassConstructors1 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)
{
// ...
}
}
namestringThe name of the resource.
userNameParameterResource?A parameter that contains the PostgreSQL server user name, or null to use a default value.
passwordParameterResourceA parameter that contains the PostgreSQL server password.