Candor.Security.UserPrincipal.IsInAnyRole C# (CSharp) Méthode

IsInAnyRole() public méthode

Determines if this user has access to perform actions in any of the specified roles.
public IsInAnyRole ( ) : bool
Résultat bool
        public bool IsInAnyRole(params string[] roles)
        {
            EnsureRolesLoadedIfAuthenticated();
            var roleNames = new List<string>(roles);
            return _roles != null && _roles.Exists(roleNames.Contains);
        }