AzureResourceExtensions.PublishAsConnectionString<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the resource to be published as a connection string reference in the manifest.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> PublishAsConnectionString<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder) where T : Aspire.Hosting.ApplicationModel.IAzureResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString;
static member PublishAsConnectionString : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IAzureResource and 'T :> Aspire.Hosting.ApplicationModel.IResourceWithConnectionString)> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IAzureResource and 'T :> Aspire.Hosting.ApplicationModel.IResourceWithConnectionString)> (requires 'T :> Aspire.Hosting.ApplicationModel.IAzureResource and 'T :> Aspire.Hosting.ApplicationModel.IResourceWithConnectionString)
<Extension()>
Public Function PublishAsConnectionString(Of T As {IAzureResource, IResourceWithConnectionString}) (builder As IResourceBuilder(Of T)) As IResourceBuilder(Of T)
Type Parameters
- T
The resource type.
Parameters
- builder
- IResourceBuilder<T>
The resource builder.
Returns
The configured IResourceBuilder<T>.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for