Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IOperationPermissionProvider.GetPermissions() Method

Returns permissions that are directly assigned to the current object.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

#Returns

Type Description
IEnumerable<IOperationPermission>

An IEnumerable<IOperationPermission> list of permissions that are directly assigned to the current object.

#Remarks

This method returns permissions owned by the current IOperationPermissionProvider object (not recursively). When implementing the IOperationPermissionProvider interface in a custom User class, return the empty list in this method, as permissions are not assigned to users directly (they are assigned via Roles). When implementing the IOperationPermissionProvider interface in a custom Role class, return the list of permissions that are directly assigned (do not include permissions from child Roles).

See Also