Membership Members
.NET Framework 3.0
Validates user credentials and manages user settings. This class cannot be inherited.
The following tables list the members exposed by the Membership type.
| 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. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| CreateUser | Overloaded. Adds a new user to the data store. |
| DeleteUser | Overloaded. Deletes a user from the database. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| 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. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetNumberOfUsersOnline | Gets the number of users currently accessing an application. |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| 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. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| UpdateUser | Updates the database with the information for the specified user. |
| ValidateUser | Verifies that the supplied user name and password are valid. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| ValidatingPassword | Occurs when a user is created, a password is changed, or a password is reset. |
Community Additions
ADD
Show: