Share via


IWritableFeatureFlags Interface

Definition

A testability service to allow changing the state of a feature flag.

public interface class IWritableFeatureFlags : Microsoft::VisualStudio::FeatureFlags::IFeatureFlags
public interface IWritableFeatureFlags : Microsoft.VisualStudio.FeatureFlags.IFeatureFlags
type IWritableFeatureFlags = interface
    interface IFeatureFlags
Public Interface IWritableFeatureFlags
Implements IFeatureFlags
Derived
Implements

Methods

EnableFeature(String, Boolean)

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.

GetFlags()

A method used to retrieve all feature flags for this user and appid combination. The values of the flags returned are the currently set values and may differ from the defaults. This will only return the set of registered flags.

(Inherited from IFeatureFlags)
IsFeatureEnabled(String, Boolean)

This method is used to determine whether a feature is enabled. If the flag cannot be located, or if there is an error processing the request the default value is returned.

(Inherited from IFeatureFlags)

Applies to