Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Membership Methods

The Membership type exposes the following members.

  Name Description
Public method Static member CreateUser(String, String) Adds a new user to the data store.
Public method Static member CreateUser(String, String, String) Adds a new user with a specified e-mail address to the data store.
Public method Static member CreateUser(String, String, String, String, String, Boolean, MembershipCreateStatus) Adds a new user with specified property values to the data store and returns a status parameter indicating that the user was successfully created or the reason the user creation failed.
Public method Static member CreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus) Adds a new user with specified property values and a unique identifier to the data store and returns a status parameter indicating that the user was successfully created or the reason the user creation failed.
Public method Static member DeleteUser(String) Deletes a user and any related user data from the database.
Public method Static member DeleteUser(String, Boolean) Deletes a user from the database.
Public method Static member FindUsersByEmail(String) Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
Public method Static member FindUsersByEmail(String, Int32, Int32, Int32) Gets a collection of membership users, in a page of data, where the e-mail address contains the specified e-mail address to match.
Public method Static member FindUsersByName(String) Gets a collection of membership users where the user name contains the specified user name to match.
Public method Static member FindUsersByName(String, Int32, Int32, Int32) Gets a collection of membership users, in a page of data, where the user name contains the specified user name to match.
Public method Static member GeneratePassword Generates a random password of the specified length.
Public method Static member GetAllUsers() Gets a collection of all the users in the database.
Public method Static member GetAllUsers(Int32, Int32, Int32) Gets a collection of all the users in the database in pages of data.
Public method Static member GetNumberOfUsersOnline Gets the number of users currently accessing an application.
Public method Static member GetUser() Gets the information from the data source and updates the last-activity date/time stamp for the current logged-on membership user.
Public method Static member GetUser(Boolean) Gets the information from the data source for the current logged-on membership user. Updates the last-activity date/time stamp for the current logged-on membership user, if specified.
Public method Static member GetUser(Object) Gets the information from the data source for the membership user associated with the specified unique identifier.
Public method Static member GetUser(String) Gets the information from the data source for the specified membership user.
Public method Static member GetUser(Object, Boolean) Gets the information from the data source for the membership user associated with the specified unique identifier. Updates the last-activity date/time stamp for the user, if specified.
Public method Static member GetUser(String, Boolean) Gets the information from the data source for the specified membership user. Updates the last-activity date/time stamp for the user, if specified.
Public method Static member GetUserNameByEmail Gets a user name where the e-mail address for the user matches the specified e-mail address.
Public method Static member UpdateUser Updates the database with the information for the specified user.
Public method Static member ValidateUser Verifies that the supplied user name and password are valid.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.