Skip to content
Docs Try Aspire
Docs Try

IResource.withRelationship

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... omitted for brevity
withRelationship(
resourceBuilder: IResource,
type: string): IResource;
}

Signature

method withRelationship builder
Adds a relationship to another resource using its builder.
withRelationship(
resourceBuilder: IResource,
type: string): IResource
resourceBuilder IResource
type string
IResource

Defined on

This method is defined on the following type: