Class Feature
- Namespace
- Dynamicweb.Core
- Assembly
- Dynamicweb.Core.dll
When inheriting this, the feature flag will be visible in the backend through Setting > Administration > Feature Management.
public abstract class Feature
- Inheritance
-
Feature
- Derived
- Inherited Members
Constructors
Feature(string, string)
protected Feature(string name, string category)
Parameters
Feature(string, string, bool)
protected Feature(string name, string category, bool defaultValue)
Parameters
Properties
Category
public string Category { get; }
Property Value
DefaultValue
public bool DefaultValue { get; }
Property Value
Name
public string Name { get; }
Property Value
Methods
Activate()
public abstract void Activate()
Deactivate()
public abstract void Deactivate()
IsActive()
public abstract bool IsActive()
Returns
IsActive<T>()
public static bool IsActive<T>() where T : Feature, new()
Returns
Type Parameters
T
SetToDefault()
public abstract void SetToDefault()
Toggle()
public virtual void Toggle()