Ilumnis Authentication

RoleCollection.HasRole Method (Role)

Checks if a role is part of this role collection.

public bool HasRole(
   Role role
);

Parameters

role
Role to check for.

Return Value

true if role is part of this collection, otherwise false.

Exceptions

Exception Type Condition
InvalidRoleIdentifierException Thrown when role.RoleId is invalid.

See Also

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