System.Web.Security Namespace
.NET Framework version 2.0
Exposes and updates membership user information in the membership data store.
Visibility |
Constructor |
Parameters |
public |
MembershipUser |
(
String
providerName
,
String
name
,
Object
providerUserKey
,
String
email
,
String
passwordQuestion
,
String
comment
,
Boolean
isApproved
,
Boolean
isLockedOut
,
DateTime
creationDate
,
DateTime
lastLoginDate
,
DateTime
lastActivityDate
,
DateTime
lastPasswordChangedDate
,
DateTime
lastLockoutDate
)
|
|
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.
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.
The following example shows basic usage of the MembershipUser class.
Show me
Membership Class MembershipProvider Class