Ilumnis Authentication

User.HasRole Method (Int32)

Checks if a role is assigned to this user.

public bool HasRole(
   int roleId
);

Parameters

roleId
RoleId of the role to check for.

Return Value

true if role is assigned to this user, otherwise false.

Exceptions

Exception Type Condition
RoleException Thrown when invalid roleId is passed.

See Also

User Class | IExSys.Authentication Namespace | User.HasRole Overload List