| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MembershipUser Class.NET Framework version 2.0 Exposes and updates membership user information in the membership data store.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | Comment | String | [ Get , Set ] |
| public | CreationDate | DateTime | [ Get ] |
| public | String | [ Get , Set ] | |
| public | IsApproved | Boolean | [ Get , Set ] |
| public | IsLockedOut | Boolean | [ Get ] |
| public | IsOnline | Boolean | [ Get ] |
| public | LastActivityDate | DateTime | [ Get , Set ] |
| public | LastLockoutDate | DateTime | [ Get ] |
| public | LastLoginDate | DateTime | [ Get , Set ] |
| public | LastPasswordChangedDate | DateTime | [ Get ] |
| public | PasswordQuestion | String | [ Get ] |
| public | ProviderName | String | [ Get ] |
| public | ProviderUserKey | Object | [ Get ] |
| public | UserName | String | [ Get ] |
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | ChangePassword | ( String oldPassword , String newPassword ) | Boolean |
| public | ChangePasswordQuestionAndAnswer | ( String password , String newPasswordQuestion , String newPasswordAnswer ) | Boolean |
| public | GetPassword | ( String passwordAnswer ) | String |
| public | GetPassword | ( ) | String |
| public | ResetPassword | ( String passwordAnswer ) | String |
| public | ResetPassword | ( ) | String |
| public | ToString | ( ) | String |
| public | UnlockUser | ( ) | Boolean |
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.
Membership Class MembershipProvider Class
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme