Skip to content
Docs Try Aspire

withHostPort

Function
📦 Aspire.Hosting.SqlServer v13.2.0-preview.1.26159.1
interface SqlServerServerResource {
// ... omitted for brevity
withHostPort(port: number): SqlServerServerResource;
}

Signature

method withHostPort builder
Sets the host port for the SQL Server resource
withHostPort(port: number): SqlServerServerResource
port number
SqlServerServerResource

Applies to

This function is an extension method on the following types: