Skip to content
Docs Try Aspire

withContainerName

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withContainerName(name: string): ContainerResource;
}

Signature

method withContainerName builder
Sets the container name
withContainerName(name: string): ContainerResource
name string
ContainerResource

Applies to

This function is an extension method on the following types: