Search Results for

    Show / Hide Table of Contents
    View Source

    Class IconService

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.BackOffice.Services
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public class IconService : IIconService

    Constructors

    View Source

    IconService(IOptionsMonitor<GlobalSettings>, IHostingEnvironment, AppCaches)

    Declaration
    public IconService(IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, AppCaches appCaches)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptionsMonitor<GlobalSettings> globalSettings
    IHostingEnvironment hostingEnvironment
    AppCaches appCaches
    View Source

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

    Declaration
    public IconService(IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, AppCaches appCaches, IWebHostEnvironment webHostEnvironment)
    Parameters
    Type Name Description
    Microsoft.Extensions.Options.IOptionsMonitor<GlobalSettings> globalSettings
    IHostingEnvironment hostingEnvironment
    AppCaches appCaches
    Microsoft.AspNetCore.Hosting.IWebHostEnvironment webHostEnvironment

    Methods

    View Source

    GetIcon(String)

    Gets the svg string for the icon name found at the global icons path

    Declaration
    public IconModel GetIcon(string iconName)
    Parameters
    Type Name Description
    System.String iconName
    Returns
    Type Description
    IconModel
    View Source

    GetIcons()

    Declaration
    public IReadOnlyDictionary<string, string>? GetIcons()
    Returns
    Type Description
    System.Nullable<IReadOnlyDictionary<System.String, System.String>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • IconService(IOptionsMonitor<GlobalSettings>, IHostingEnvironment, AppCaches)
      • IconService(IOptionsMonitor<GlobalSettings>, IHostingEnvironment, AppCaches, IWebHostEnvironment)
    • Methods
      • GetIcon(String)
      • GetIcons()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX