Show / Hide Table of Contents

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

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft