FeatureGateAttribute Constructors
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.
Overloads
FeatureGateAttribute(Object[]) |
Creates an attribute that will gate actions or pages unless all the provided feature flag(s) are enabled. |
FeatureGateAttribute(String[]) |
Creates an attribute that will gate actions or pages unless all the provided feature flag(s) are enabled. |
FeatureGateAttribute(RequirementType, Object[]) |
Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature flag(s) to pass. |
FeatureGateAttribute(RequirementType, String[]) |
Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature flag(s) to pass. |
FeatureGateAttribute(Object[])
Creates an attribute that will gate actions or pages unless all the provided feature flag(s) are enabled.
public FeatureGateAttribute(params object[] features);
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : obj[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
Public Sub New (ParamArray features As Object())
Parameters
- features
- Object[]
A set of enums representing the feature flags that the attribute will represent.
Applies to
FeatureGateAttribute(String[])
Creates an attribute that will gate actions or pages unless all the provided feature flag(s) are enabled.
public FeatureGateAttribute(params string[] features);
public FeatureGateAttribute(params string[] featureFlags);
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : string[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : string[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
Public Sub New (ParamArray features As String())
Public Sub New (ParamArray featureFlags As String())
Parameters
- featuresfeatureFlags
- String[]
The names of the features that the attribute will represent.
Applies to
FeatureGateAttribute(RequirementType, Object[])
Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature flag(s) to pass.
public FeatureGateAttribute(Microsoft.FeatureManagement.RequirementType requirementType, params object[] features);
public FeatureGateAttribute(Microsoft.FeatureManagement.RequirementType requirementType, params object[] featureFlags);
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : Microsoft.FeatureManagement.RequirementType * obj[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : Microsoft.FeatureManagement.RequirementType * obj[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
Public Sub New (requirementType As RequirementType, ParamArray features As Object())
Public Sub New (requirementType As RequirementType, ParamArray featureFlags As Object())
Parameters
- requirementType
- RequirementType
Specifies whether all or any of the provided feature flags should be enabled in order to pass.
- featuresfeatureFlags
- Object[]
A set of enums representing the features that the attribute will represent.
Applies to
FeatureGateAttribute(RequirementType, String[])
Creates an attribute that can be used to gate actions or pages. The gate can be configured to require all or any of the provided feature flag(s) to pass.
public FeatureGateAttribute(Microsoft.FeatureManagement.RequirementType requirementType, params string[] features);
public FeatureGateAttribute(Microsoft.FeatureManagement.RequirementType requirementType, params string[] featureFlags);
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : Microsoft.FeatureManagement.RequirementType * string[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
new Microsoft.FeatureManagement.Mvc.FeatureGateAttribute : Microsoft.FeatureManagement.RequirementType * string[] -> Microsoft.FeatureManagement.Mvc.FeatureGateAttribute
Public Sub New (requirementType As RequirementType, ParamArray features As String())
Public Sub New (requirementType As RequirementType, ParamArray featureFlags As String())
Parameters
- requirementType
- RequirementType
Specifies whether all or any of the provided feature flags should be enabled in order to pass.
- featuresfeatureFlags
- String[]
The names of the features that the attribute will represent.