BlogEngine.Core.Providers.XmlMembershipProvider.GetAllUsers C# (CSharp) Метод

GetAllUsers() публичный Метод

Retrieves a collection of all the users. This implementation ignores pageIndex and pageSize, and it doesn't sort the MembershipUser objects returned.
public GetAllUsers ( int pageIndex, int pageSize, int &totalRecords ) : System.Web.Security.MembershipUserCollection
pageIndex int The page Index.
pageSize int The page Size.
totalRecords int The total Records.
Результат System.Web.Security.MembershipUserCollection
        public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
        {
            this.ReadMembershipDataStore();
            var membershipUserCollection = new MembershipUserCollection();

            foreach (var pair in this.users[Blog.CurrentInstance.Id])
            {
                membershipUserCollection.Add(pair.Value);
            }

            totalRecords = membershipUserCollection.Count;
            return membershipUserCollection;
        }