asp.net.ph

MembershipUser Class

System.Web.Security Namespace


.NET Framework version 2.0

Exposes and updates membership user information in the membership data store.

MembershipUser Class Members

Collapse   Constructors

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 )

Collapse   Properties

Visibility Name Value Type Accessibility
public Comment String [ Get , Set ]
public CreationDate DateTime [ Get ]
public Email 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 ]

Collapse   Methods

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

Remarks

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.

Example

The following example shows basic usage of the MembershipUser class.

 Show me 


See Also

Membership Class   MembershipProvider Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph