• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Interface IFeaturesService

    Features lets your code find out what system features are currently enabled/disabled in the environment. It's important to detect if the admin must activate certain features to let your code do it's work.

    Inherited Members
    IHasLog.Log
    ICanDebug.Debug
    Namespace: ToSic.Sxc.Services
    Assembly: ToSic.Sxc.dll
    Syntax
    [PublicApi]
    public interface IFeaturesService : IHasLog, ICanDebug
    Remarks

    This replaces the older static Features accessor - please only use this from now on.

    History:

    • Added this implementation in 13.01

    Methods

    | Improve this Doc View Source

    IsEnabled(String[])

    Checks if a list of features are enabled, in case you need many features to be activated.

    Declaration
    bool IsEnabled(params string[] nameIds)
    Parameters
    Type Name Description
    System.String[] nameIds

    one or many name IDs - can also be the guids (as string)

    Returns
    Type Description
    System.Boolean

    true if all features are enabled, false if any one of them is not

    Remarks

    Added in v13.01

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX