Skip to main content
.NET 8.0+

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

IEnumerable<IOperationPermission> GetPermissions()

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