BlogEngine.Core.Providers.XmlRoleProvider.FindUsersInRole C# (CSharp) Method

FindUsersInRole() public method

Gets an array of user names in a role where the user name contains the specified user name to match.
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string /// The role to search in. ///
usernameToMatch string /// The user name to search for. ///
return string[]
        public override string[] FindUsersInRole(string roleName, string usernameToMatch)
        {
            var usersInRole = new List<string>();
            if (this.IsUserInRole(usernameToMatch, roleName))
            {
                usersInRole.AddRange(this.userNames);
            }

            return usersInRole.ToArray();
        }