Class RequiresFeatureAttribute
This attribute can be used on a class/method to declare that given class/method is available only if required feature(s) are enabled.
Inheritance
System.Object
RequiresFeatureAttribute
Namespace: Volo.Abp.Features
Assembly: Volo.Abp.Features.dll
Syntax
public class RequiresFeatureAttribute : Attribute
Constructors
RequiresFeatureAttribute(String[])
Creates a new instance of RequiresFeatureAttribute class.
Declaration
public RequiresFeatureAttribute(params string[] features)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | features | A list of features to be checked if they are enabled |
Properties
Features
A list of features to be checked if they are enabled.
Declaration
public string[] Features { get; }
Property Value
Type | Description |
---|---|
System.String[] |
RequiresAll
If this property is set to true, all of the Features must be enabled. If it's false, at least one of the Features must be enabled. Default: false.
Declaration
public bool RequiresAll { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |