Skip to content
Docs Try Aspire

IResource.withIconName

Method
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IResource {
// ... omitted for brevity
withIconName(
iconName: string,
iconVariant?: IconVariant): IResource;
}

Signature

method withIconName builder
Sets the icon for the resource
withIconName(
iconName: string,
iconVariant?: IconVariant): IResource
iconName string
iconVariant IconVariant optional = Filled
IResource

Defined on

This method is defined on the following type: