Table of Contents

Interface IFeaturesService

Namespace
ToSic.Sxc.Services
Assembly
ToSic.Sxc.dll

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.

[PublicApi]
public interface IFeaturesService : IHasLog, ICanDebug
Inherited Members

Remarks

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

History:

  • Added this implementation in 13.01

Methods

IsEnabled(params string[])

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

bool IsEnabled(params string[] nameIds)

Parameters

nameIds string[]

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

Returns

bool

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

Remarks

Added in v13.01