Table of Contents

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

name string
category string

Feature(string, string, bool)

protected Feature(string name, string category, bool defaultValue)

Parameters

name string
category string
defaultValue bool

Properties

Category

public string Category { get; }

Property Value

string

DefaultValue

public bool DefaultValue { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Methods

Activate()

public abstract void Activate()

Deactivate()

public abstract void Deactivate()

IsActive()

public abstract bool IsActive()

Returns

bool

IsActive<T>()

public static bool IsActive<T>() where T : Feature, new()

Returns

bool

Type Parameters

T

SetToDefault()

public abstract void SetToDefault()

Toggle()

public virtual void Toggle()
To top