This documentation is archived and is not being maintained.
Membership Members
Visual Studio 2008
Validates user credentials and manages user settings. This class cannot be inherited.
The Membership type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateUser | Overloaded. Adds a new user to the data store. |
|
DeleteUser | Overloaded. Deletes a user from the database. |
|
FindUsersByEmail | Overloaded. Gets a collection of membership users where the e-mail address contains the specified e-mail address to match. |
|
FindUsersByName | Overloaded. Gets a collection of membership users where the user name contains the specified user name to match. |
|
GeneratePassword | Generates a random password of the specified length. |
|
GetAllUsers | Overloaded. Gets a collection of the users in the database. |
|
GetNumberOfUsersOnline | Gets the number of users currently accessing an application. |
|
GetUser | Overloaded. Gets the information for a membership user from the data source. |
|
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. |
| Name | Description | |
|---|---|---|
|
ApplicationName | Gets or sets the name of the application. |
|
EnablePasswordReset | Gets a value indicating whether the current membership provider is configured to allow users to reset their passwords. |
|
EnablePasswordRetrieval | Gets a value indicating whether the current membership provider is configured to allow users to retrieve their passwords. |
|
HashAlgorithmType | The identifier of the algorithm used to hash passwords. |
|
MaxInvalidPasswordAttempts | Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out. |
|
MinRequiredNonAlphanumericCharacters | Gets the minimum number of special characters that must be present in a valid password. |
|
MinRequiredPasswordLength | Gets the minimum length required for a password. |
|
PasswordAttemptWindow | Gets the time window between which consecutive failed attempts to provide a valid password or password answer are tracked. |
|
PasswordStrengthRegularExpression | Gets the regular expression used to evaluate a password. |
|
Provider | Gets a reference to the default membership provider for the application. |
|
Providers | Gets a collection of the membership providers for the ASP.NET application. |
|
RequiresQuestionAndAnswer | Gets a value indicating whether the default membership provider requires the user to answer a password question for password reset and retrieval. |
|
UserIsOnlineTimeWindow | Specifies the number of minutes after the last-activity date/time stamp for a user during which the user is considered online. |
| Name | Description | |
|---|---|---|
|
ValidatingPassword | Occurs when a user is created, a password is changed, or a password is reset. |
Show: