This documentation is archived and is not being maintained.
Membership Methods
Visual Studio 2010
The Membership type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateUser(String, String) | Adds a new user to the data store. |
|
CreateUser(String, String, String) | Adds a new user with a specified e-mail address to the data store. |
|
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. |
|
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. |
|
DeleteUser(String) | Deletes a user and any related user data from the database. |
|
DeleteUser(String, Boolean) | Deletes a user from the database. |
|
FindUsersByEmail(String) | Gets a collection of membership users where the e-mail address contains the specified e-mail address to match. |
|
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. |
|
FindUsersByName(String) | Gets a collection of membership users where the user name contains the specified user name to match. |
|
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. |
|
GeneratePassword | Generates a random password of the specified length. |
|
GetAllUsers() | Gets a collection of all the users in the database. |
|
GetAllUsers(Int32, Int32, Int32) | Gets a collection of all the users in the database in pages of data. |
|
GetNumberOfUsersOnline | Gets the number of users currently accessing an application. |
|
GetUser() | Gets the information from the data source and updates the last-activity date/time stamp for the current logged-on membership user. |
|
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. |
|
GetUser(Object) | Gets the information from the data source for the membership user associated with the specified unique identifier. |
|
GetUser(String) | Gets the information from the data source for the specified membership user. |
|
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. |
|
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. |
|
GetUserNameByEmail | Gets a user name where the e-mail address for the user matches the specified e-mail address. |
|
UpdateUser | Updates the database with the information for the specified user. |
|
ValidateUser | Verifies that the supplied user name and password are valid. |
Show: