FeatureFlags.IsFeatureEnabled(String, Boolean) Method
Definition
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.
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.
public:
virtual bool IsFeatureEnabled(System::String ^ featureName, bool defaultValue);
public:
bool IsFeatureEnabled(Platform::String ^ featureName, bool defaultValue);
bool IsFeatureEnabled(std::wstring const & featureName, bool defaultValue);
public bool IsFeatureEnabled (string featureName, bool defaultValue);
abstract member IsFeatureEnabled : string * bool -> bool
override this.IsFeatureEnabled : string * bool -> bool
Public Function IsFeatureEnabled (featureName As String, defaultValue As Boolean) As Boolean
Parameters
- featureName
- String
A string of the form ^(\w+.)+\w+$, following a pattern of [AreaPath].[Name]
- defaultValue
- Boolean
The value returned if there is an error processing the request or if the flag cannot be located.
Returns
The current state of the feature flag or the defaultValue if there is an error processing the request