Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

publishAsConnectionString

Method
📦 Aspire.Hosting v13.5.4
interface ContainerResource {
// ... omitted for brevity
publishAsConnectionString(): ContainerResource;
}

Signature

methodpublishAsConnectionStringbuilder
Changes the resource to be published as a connection string reference in the manifest.
publishAsConnectionString(): ContainerResource
ContainerResource

Applies to

This method applies to the following types: