System.Web.Security.MembershipUserCollection Class

A collection of System.Web.Security.MembershipUser objects.

See Also: MembershipUserCollection Members

Syntax

public sealed class MembershipUserCollection : ICollection

Remarks

A System.Web.Security.MembershipUserCollection is returned from the erload:System.Web.Security.Membership.GetAllUsers, erload:System.Web.Security.Membership.FindUsersByName, and erload:System.Web.Security.Membership.FindUsersByEmail methods of the System.Web.Security.Membership class. The System.Web.Security.MembershipUserCollection objects returned by the erload:System.Web.Security.Membership.GetAllUsers, erload:System.Web.Security.Membership.FindUsersByName, and erload:System.Web.Security.Membership.FindUsersByEmail methods contain a snapshot of user information in the membership data store. That is, changes to the membership user information in a System.Web.Security.MembershipUserCollection are not reflected in the membership data store. To modify membership user information in the membership data store, use the Membership.UpdateUser(MembershipUser), erload:System.Web.Security.Membership.CreateUser and Membership.DeleteUser(string) methods of the System.Web.Security.Membership class.

Note:

If you are not familiar with the membership features of ASP.NET, see Introduction to Membership before continuing. For a list of other topics related to membership, see Managing Users By Using Membership.

Requirements

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