System.Web.Security.MembershipProvider Members

The members of System.Web.Security.MembershipProvider are listed below.

See Also: Inherited members from System.Configuration.Provider.ProviderBase

Protected Constructors

Initializes a new instance of the System.Web.Security.MembershipProvider class.

Public Properties

abstract
ApplicationNamestring.

The name of the application using the custom membership provider.

[read-only]
abstract
EnablePasswordResetbool.

Indicates whether the membership provider is configured to allow users to reset their passwords.

[read-only]
abstract
EnablePasswordRetrievalbool.

Indicates whether the membership provider is configured to allow users to retrieve their passwords.

[read-only]
abstract
MaxInvalidPasswordAttemptsint.

Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out.

[read-only]
abstract
MinRequiredNonAlphanumericCharactersint.

Gets the minimum number of special characters that must be present in a valid password.

[read-only]
abstract
MinRequiredPasswordLengthint.

Gets the minimum length required for a password.

[read-only]
abstract
PasswordAttemptWindowint.

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.

[read-only]
abstract
PasswordFormatMembershipPasswordFormat.

Gets a value indicating the format for storing passwords in the membership data store.

[read-only]
abstract
PasswordStrengthRegularExpressionstring.

Gets the regular expression used to evaluate a password.

[read-only]
abstract
RequiresQuestionAndAnswerbool.

Gets a value indicating whether the membership provider is configured to require the user to answer a password question for password reset and retrieval.

[read-only]
abstract
RequiresUniqueEmailbool.

Gets a value indicating whether the membership provider is configured to require a unique e-mail address for each user name.

Public Methods

abstract
ChangePassword(string, string, string) : bool

Processes a request to update the password for a membership user.

abstract
ChangePasswordQuestionAndAnswer(string, string, string, string) : bool

Processes a request to update the password question and answer for a membership user.

abstract
CreateUser(string, string, string, string, string, bool, object, out MembershipCreateStatus) : MembershipUser
Documentation for this section has not yet been entered.
abstract
DeleteUser(string, bool) : bool

Removes a user from the membership data source.

abstract
FindUsersByEmail(string, int, int, out int) : MembershipUserCollection
Documentation for this section has not yet been entered.
abstract
FindUsersByName(string, int, int, out int) : MembershipUserCollection
Documentation for this section has not yet been entered.
abstract
GetAllUsers(int, int, out int) : MembershipUserCollection
Documentation for this section has not yet been entered.
abstract
GetNumberOfUsersOnline() : int

Gets the number of users currently accessing the application.

abstract
GetPassword(string, string) : string

Gets the password for the specified user name from the data source.

abstract
GetUser(object, bool) : MembershipUser

Gets user information from the data source based on the unique identifier for the membership user. Provides an option to update the last-activity date/time stamp for the user.

abstract
GetUser(string, bool) : MembershipUser

Gets information from the data source for a user. Provides an option to update the last-activity date/time stamp for the user.

abstract
GetUserNameByEmail(string) : string

Gets the user name associated with the specified e-mail address.

abstract
ResetPassword(string, string) : string

Resets a user's password to a new, automatically generated password.

abstract
UnlockUser(string) : bool

Clears a lock so that the membership user can be validated.

abstract
UpdateUser(MembershipUser)

Updates information about a user in the data source.

abstract
ValidateUser(string, string) : bool

Verifies that the specified user name and password exist in the data source.

Protected Methods

DecryptPassword(byte[]) : byte[]

Decrypts an encrypted password.

EncryptPassword(byte[]) : byte[]

Encrypts a password.

OnValidatingPassword(ValidatePasswordEventArgs)

Raises the MembershipProvider.ValidatingPassword event if an event handler has been defined.

Public Events

ValidatingPassword

Occurs when a user is created, a password is changed, or a password is reset.