IUser.CanRemoveRole

Determines whether the specified role can be removed from the collection.

public RemoveRoleStatus CanRemoveRole(IRole role);

Return Value

CantRemoveEveryone for the Everyone role, CantRemoveLastAdmin if this is the last user in the Administrator role, or Success otherwise.

Parameters

role
The role to remove.

See also:

Interface IUser