Ilumnis Authentication

User.HasRole Method (String)

Checks if a role is assigned to this user.

public bool HasRole(
   string roleName
);

Parameters

roleName
Name 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 roleName is passed.

See Also

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