FeatureFlags Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
public sealed class FeatureFlags : IDisposable, Microsoft.Internal.VisualStudio.FeatureFlags.IFeatureFlagsInternal, Microsoft.VisualStudio.FeatureFlags.IWritableFeatureFlags
type FeatureFlags = class
interface IFeatureFlags
type FeatureFlags = class
interface IWritableFeatureFlags
interface IFeatureFlags
interface IDisposable
type FeatureFlags = class
interface IWritableFeatureFlags
interface IFeatureFlags
interface IFeatureFlagsInternal
interface IDisposable
Public NotInheritable Class FeatureFlags
Public NotInheritable Class FeatureFlags
Implements IDisposable, IWritableFeatureFlags
Public NotInheritable Class FeatureFlags
Implements IDisposable, IFeatureFlagsInternal, IWritableFeatureFlags
- Inheritance
-
FeatureFlags
- Implements
Feature |
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. |
Feature |
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. |
Dispose() |
Drops any event handlers added to the IFeatureFlagsStore objects provided to the constructor. |
Get |
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. |
Is |
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. |
Is |
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. |
Try |
Gets information about a feature flag. |
Produkt | Verzie |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |