MembershipUser Class
Assembly: System.Web (in system.web.dll)
The MembershipUser object is used to represent a single membership user in the membership data store. It exposes information about the membership user such as the e-mail address, and provides functionality for the membership user such as the ability to change or reset his or her password.
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. |
A MembershipUser object is returned by the GetUser and CreateUser methods or as part of a MembershipUserCollection returned by the GetAllUsers, FindUsersByName, and FindUsersByEmail methods.
A MembershipUser object is required by the UpdateUser method when you want to update the information for an existing membership user.
| Topic | Location |
|---|---|
| How to: Implement a Custom Membership User | Building ASP .NET Web Applications |
| How to: Implement a Custom Membership User | Building ASP .NET Web Applications |
The following code example updates the e-mail address for a user.
Security Note: |
|---|
|
This example contains a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview (Visual Studio). |
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
Reference
MembershipUser MembersSystem.Web.Security Namespace
Note:
Security Note: