Table of Contents

Class IconService

Namespace
Umbraco.Cms.Web.BackOffice.Services
Assembly
Umbraco.Web.BackOffice.dll
public class IconService : IIconService
Inheritance
IconService
Implements
IIconService
Inherited Members

Constructors

IconService(IOptionsMonitor<GlobalSettings>, IHostingEnvironment, AppCaches)

[Obsolete("Use other ctor - Will be removed in Umbraco 12")]
public IconService(IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, AppCaches appCaches)

Parameters

globalSettings IOptionsMonitor<GlobalSettings>
hostingEnvironment IHostingEnvironment
appCaches AppCaches

IconService(IOptionsMonitor<GlobalSettings>, IHostingEnvironment, AppCaches, IWebHostEnvironment)

public IconService(IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, AppCaches appCaches, IWebHostEnvironment webHostEnvironment)

Parameters

globalSettings IOptionsMonitor<GlobalSettings>
hostingEnvironment IHostingEnvironment
appCaches AppCaches
webHostEnvironment IWebHostEnvironment

Methods

GetIcon(string)

public IconModel? GetIcon(string iconName)

Parameters

iconName string

Returns

IconModel

GetIcons()

public IReadOnlyDictionary<string, string>? GetIcons()

Returns

IReadOnlyDictionary<string, string>