Ilumnis Authentication

RoleCollection.HasRole Method (String)

Checks if a role is part of this role collection.

public bool HasRole(
   string roleName
);

Parameters

roleName
Name of role to check for.

Return Value

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

Exceptions

Exception Type Condition
InvalidRoleNameException Thrown when invalid roleName is passed.

See Also

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