Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCapabilityHost

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) WithCapabilityHost(resource any) AzureCognitiveServicesProjectResource

Signature

methodWithCapabilityHostbuilder
Associates a supported resource with a capability host on a Microsoft Foundry project.
WithCapabilityHost(resource any) AzureCognitiveServicesProjectResource
resourceanyThe supported capability host resource.
AzureCognitiveServicesProjectResource

A reference to the project builder for chaining capability host configuration.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: