IWritableFeatureFlags.EnableFeature(String, Boolean) Method

Definition

This method is used to set the state of a feature flag. Unlike IsFeatureEanbled this method will throw if any of the flags are unrecognized (i.e. if the flag wasn't registered with the service). EnableFeature immediately persists the enabled state to the persistence store.

public:
 void EnableFeature(System::String ^ name, bool enabled);
public void EnableFeature(string name, bool enabled);
abstract member EnableFeature : string * bool -> unit
Public Sub EnableFeature (name As String, enabled As Boolean)

Parameters

name
String

A string of the form ^(\w+.)+\w+$, following a pattern of [AreaPath].[Name]

enabled
Boolean

A value indicating what the result of calling IsFeatureEnabled with this name will return

Applies to