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