Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 Aspire.Hosting.PostgreSQL v13.4.0
interface PgAdminContainerResource {
// ... omitted for brevity
withHostPort(port: number): PgAdminContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PgAdminContainerResource
portnumber
PgAdminContainerResource

Applies to

This method applies to the following types: