Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceUrlsEditor.Add

Method
📦 Aspire.Hosting v17.0.0
type ResourceUrlsEditor interface {
// ... omitted for brevity
Add(
url any,
options ...*AddOptions,
) error
}

Signature

methodAdd
Adds a displayed URL.
Add(
url any,
options ...*AddOptions,
) error
urlanyThe URL to add, specified as a string or reference expression.
options...*AddOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddOptions argument.

DisplayText*stringThe optional display text to show for the URL.
error

Returns error.

Defined on

This method is defined on the following type: