Arash.Membership.Site.SitePrincipal.IsInRole C# (CSharp) Method

IsInRole() public method

public IsInRole ( string role ) : bool
role string
return bool
        public bool IsInRole(string role)
        {
            if (Role == null && string.IsNullOrEmpty(this.Role.Name))
                return false;

            return string.Equals(this.Role.Name, role, StringComparison.OrdinalIgnoreCase);
        }