Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.WithIconName

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithIconName(
iconName string,
options ...*WithIconNameOptions,
) Resource

Signature

methodWithIconNamebuilder
Specifies the icon to use when displaying the resource in the dashboard.
WithIconName(
iconName string,
options ...*WithIconNameOptions,
) Resource
iconNamestringThe name of the FluentUI icon to use. See https://aka.ms/fluentui-system-icons for available icons.
options...*WithIconNameOptionsOptional settings, described under Options.

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

IconVariant*IconVariantThe variant of the icon (Regular or Filled). Defaults to Filled.
Resource

The resource builder.

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

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: