.NET Framework Class Library
MembershipProvider Members
Defines the contract that ASP.NET implements to provide membership services using custom membership providers.
The following tables list the members exposed by the MembershipProvider type.
Protected Constructors
| Name | Description | |
|---|---|---|
| MembershipProvider | Initializes a new instance of the MembershipProvider class. |
Public Properties
| Name | Description | |
|---|---|---|
| ApplicationName | The name of the application using the custom membership provider. |
| Description | Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).(Inherited from ProviderBase.) |
| EnablePasswordReset | Indicates whether the membership provider is configured to allow users to reset their passwords. |
| EnablePasswordRetrieval | Indicates whether the membership provider is configured to allow users to retrieve their 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. |
| Name | Gets the friendly name used to refer to the provider during configuration.(Inherited from ProviderBase.) |
| PasswordAttemptWindow | Gets the number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out. |
| PasswordFormat | Gets a value indicating the format for storing passwords in the membership data store. |
| PasswordStrengthRegularExpression | Gets the regular expression used to evaluate a password. |
| RequiresQuestionAndAnswer | Gets a value indicating whether the membership provider is configured to require the user to answer a password question for password reset and retrieval. |
| RequiresUniqueEmail | Gets a value indicating whether the membership provider is configured to require a unique e-mail address for each user name. |
Public Methods
(see also
Protected Methods
)
| Name | Description | |
|---|---|---|
| ChangePassword | Processes a request to update the password for a membership user. |
| ChangePasswordQuestionAndAnswer | Processes a request to update the password question and answer for a membership user. |
| CreateUser | Adds a new membership user to the data source. |
| DeleteUser | Removes a user from the membership data source. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| FindUsersByEmail | Gets a collection of membership users where the e-mail address contains the specified e-mail address to match. |
| FindUsersByName | Gets a collection of membership users where the user name contains the specified user name to match. |
| GetAllUsers | Gets a collection of all the users in the data source in pages of data. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetNumberOfUsersOnline | Gets the number of users currently accessing the application. |
| GetPassword | Gets the password for the specified user name from the data source. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| GetUser | Overloaded. Gets information from the data source for a membership user. |
| GetUserNameByEmail | Gets the user name associated with the specified e-mail address. |
| Initialize | Initializes the provider. (Inherited from ProviderBase.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ResetPassword | Resets a user's password to a new, automatically generated password. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| UnlockUser | Clears a lock so that the membership user can be validated. |
| UpdateUser | Updates information about a user in the data source. |
| ValidateUser | Verifies that the specified user name and password exist in the data source. |
Protected Methods
| Name | Description | |
|---|---|---|
| DecryptPassword | Decrypts an encrypted password. |
| EncryptPassword | Encrypts a password. |
| 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.) |
| OnValidatingPassword | Raises the ValidatingPassword event if an event handler has been defined. |
Public Events
| Name | Description | |
|---|---|---|
| ValidatingPassword | Occurs when a user is created, a password is changed, or a password is reset. |
See Also
Reference
MembershipProvider ClassSystem.Web.Security Namespace
Other Resources
Implementing a Membership ProviderIntroduction to Membership