Ilumnis Authentication

RoleCollection.HasRole Method (Int32)

Checks if a role is part of this role collection.

public bool HasRole(
   int roleId
);

Parameters

roleId
RoleId of role to check for.

Return Value

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

Exceptions

Exception Type Condition
InvalidRoleIdentifierException Thrown when invalid roleId is passed.

See Also

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