Determines if the specified user can be removed from a role
Namespace: DotNetNuke.Security.RolesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static bool CanRemoveUserFromRole( PortalSettings PortalSettings, int UserId, int RoleId ) |
Visual Basic |
---|
Public Shared Function CanRemoveUserFromRole ( PortalSettings As PortalSettings, UserId As Integer, RoleId As Integer ) As Boolean |
Parameters
- PortalSettings
- Type: DotNetNuke.Entities.Portals..::..PortalSettings
A PortalSettings structure representing the current portal settings
- UserId
- Type: System..::..Int32
The Id of the User that should be checked for role removability
- RoleId
- Type: System..::..Int32
The Id of the Role that should be checked for removability
Return Value
returnsM:DotNetNuke.Security.Roles.RoleController.CanRemoveUserFromRole(DotNetNuke.Entities.Portals.PortalSettings,System.Int32,System.Int32)
Remarks
Roles such as "Registered Users" and "Administrators" can only
be removed in certain circumstances