FeatureFlag Constructors

Definition

Overloads

FeatureFlag(String, Boolean)

Initializes an instance of FeatureFlag with the given name and state. FeatureFlag objects are immutable.

FeatureFlag(String, Boolean, String, String, String, String, String, String, String)

Construct a FeatureFlag with all the properties to display it on the Preview Features Pane as well.

FeatureFlag(String, Boolean, String, String, String, String, String, String, String, String, String)

Construct a FeatureFlag with all the properties to display it on the Preview Features Pane as well.

FeatureFlag(String, Boolean)

Initializes an instance of FeatureFlag with the given name and state. FeatureFlag objects are immutable.

public:
 FeatureFlag(System::String ^ name, bool isEnabled);
public:
 FeatureFlag(Platform::String ^ name, bool isEnabled);
 FeatureFlag(std::wstring const & name, bool isEnabled);
public FeatureFlag (string name, bool isEnabled);
new Microsoft.VisualStudio.FeatureFlags.FeatureFlag : string * bool -> Microsoft.VisualStudio.FeatureFlags.FeatureFlag
Public Sub New (name As String, isEnabled As Boolean)

Parameters

name
String

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

isEnabled
Boolean

True if the feature should be enabled, otherwise false.

Applies to

FeatureFlag(String, Boolean, String, String, String, String, String, String, String)

Construct a FeatureFlag with all the properties to display it on the Preview Features Pane as well.

public FeatureFlag (string name, bool isEnabled, string? title = default, string? previewPaneChannels = default, string? learnMoreUrl = default, string? description = default, string? requiredAction = default, string? feedbackUrl = default, string? packageGuid = default);
new Microsoft.VisualStudio.FeatureFlags.FeatureFlag : string * bool * string * string * string * string * string * string * string -> Microsoft.VisualStudio.FeatureFlags.FeatureFlag
Public Sub New (name As String, isEnabled As Boolean, Optional title As String = Nothing, Optional previewPaneChannels As String = Nothing, Optional learnMoreUrl As String = Nothing, Optional description As String = Nothing, Optional requiredAction As String = Nothing, Optional feedbackUrl As String = Nothing, Optional packageGuid As String = Nothing)

Parameters

name
String

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

isEnabled
Boolean

A Boolean value indicating whether the feature should be enabled

title
String

A string representing the title of the feature flag to be displayed on the preview pane

previewPaneChannels
String

A comma separated list of channels for which the feature flag will be showed on the preview pane

learnMoreUrl
String

A link to provide more information about the feature flag

description
String

A brief description about the feature flag to be displayed on the preview pane

requiredAction
String

A string for ex: restart indicating the action required for the feeature to take effect

feedbackUrl
String

A link for users to provide feedback about the feature

packageGuid
String

A string specifying the package guid to lookup localized strings

Applies to

FeatureFlag(String, Boolean, String, String, String, String, String, String, String, String, String)

Construct a FeatureFlag with all the properties to display it on the Preview Features Pane as well.

public FeatureFlag (string name, bool isEnabled, string? title = default, string? previewPaneChannels = default, string? learnMoreUrl = default, string? description = default, string? requiredAction = default, string? feedbackUrl = default, string? packageGuid = default, string? overrideDefaultValueChannels = default, string? visibleToInternalUsersOnlyChannels = default);
new Microsoft.VisualStudio.FeatureFlags.FeatureFlag : string * bool * string * string * string * string * string * string * string * string * string -> Microsoft.VisualStudio.FeatureFlags.FeatureFlag
Public Sub New (name As String, isEnabled As Boolean, Optional title As String = Nothing, Optional previewPaneChannels As String = Nothing, Optional learnMoreUrl As String = Nothing, Optional description As String = Nothing, Optional requiredAction As String = Nothing, Optional feedbackUrl As String = Nothing, Optional packageGuid As String = Nothing, Optional overrideDefaultValueChannels As String = Nothing, Optional visibleToInternalUsersOnlyChannels As String = Nothing)

Parameters

name
String

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

isEnabled
Boolean

A Boolean value indicating whether the feature should be enabled.

title
String

A string representing the title of the feature flag to be displayed on the preview pane.

previewPaneChannels
String

A comma separated list of channels for which the feature flag will be showed on the preview pane.

learnMoreUrl
String

A link to provide more information about the feature flag.

description
String

A brief description about the feature flag to be displayed on the preview pane.

requiredAction
String

A string for ex: restart indicating the action required for the feeature to take effect.

feedbackUrl
String

A link for users to provide feedback about the feature.

packageGuid
String

A string specifying the package guid to lookup localized strings.

overrideDefaultValueChannels
String

A comma separated list of channels where the default value will be overriden.

visibleToInternalUsersOnlyChannels
String

A comma separated list of channels where the feature will be visible on the preview pane to internal users only.

Applies to