.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IOperationPermissionProvider.GetPermissions() Method

Returns permissions that are directly assigned to the current object.

Namespace: DevExpress.ExpressApp.Security

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

IEnumerable<IOperationPermission> GetPermissions()
Function GetPermissions As IEnumerable(Of IOperationPermission)

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