FeatureFlags Class

Definition

A service that can be used to determine if a feature should be enabled or disabled. It can also be used to enumerate the current state of feature flags. This service is free-threaded.

public ref class FeatureFlags sealed
public ref class FeatureFlags sealed : IDisposable, Microsoft::VisualStudio::FeatureFlags::IWritableFeatureFlags
public ref class FeatureFlags sealed
class FeatureFlags sealed
public sealed class FeatureFlags
public sealed class FeatureFlags : IDisposable, Microsoft.VisualStudio.FeatureFlags.IWritableFeatureFlags
type FeatureFlags = class
    interface IFeatureFlags
type FeatureFlags = class
    interface IWritableFeatureFlags
    interface IFeatureFlags
    interface IDisposable
Public NotInheritable Class FeatureFlags
Public NotInheritable Class FeatureFlags
Implements IDisposable, IWritableFeatureFlags
Inheritance
FeatureFlags
Implements

Constructors

FeatureFlags(IFeatureFlagsStore, IWritableFeatureFlagsStore)

Creates an instance of the feature flags service that can be used to determine if a feature should be enabled or disabled as well as enumerate registered flags.

FeatureFlags(IFeatureFlagsStore, IWritableFeatureFlagsStore, IFeatureFlagsStore)

Creates an instance of the feature flags service that can be used to determine if a feature should be enabled or disabled as well as enumerate registered flags.

Methods

Dispose()

Drops any event handlers added to the IFeatureFlagsStore objects provided to the constructor.

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.

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.

IsFeatureEnabledWithoutCustomization(String, Boolean)

Do not use this method as it's intended for Telemetry only. This is used to determine the value of a feature without user customization. To get the value of Feature flag use IsFeatureEnabled(String, Boolean) This will check for feature flag value in remote store, if not found, falls back to default store.

Explicit Interface Implementations

IWritableFeatureFlags.EnableFeature(String, Boolean)

Applies to