System.Web.Security.Membership.GetAllUsers Method

Gets a collection of all the users in the database.

Syntax

public static MembershipUserCollection GetAllUsers ()

Returns

A System.Web.Security.MembershipUserCollection of System.Web.Security.MembershipUser objects representing all of the users in the database.

Remarks

Membership.GetAllUsers returns the information for all membership users for an application as a collection of System.Web.Security.MembershipUser objects. Be careful when using the Membership.GetAllUsers method with very large user databases, as the resulting System.Web.Security.MembershipUserCollection in your ASP.NET page may degrade the performance of your application.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0