System.Web.Security.Membership Members

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

See Also: Inherited members from System.Object

Public Properties

static
ApplicationNamestring.

Gets or sets the name of the application.

[read-only]
static
EnablePasswordResetbool.

Gets a value indicating whether the current membership provider is configured to allow users to reset their passwords.

[read-only]
static
EnablePasswordRetrievalbool.

Gets a value indicating whether the current membership provider is configured to allow users to retrieve their passwords.

[read-only]
static
HashAlgorithmTypestring.

The identifier of the algorithm used to hash passwords.

[read-only]
static
MaxInvalidPasswordAttemptsint.

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

[read-only]
static
MinRequiredNonAlphanumericCharactersint.

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

[read-only]
static
MinRequiredPasswordLengthint.

Gets the minimum length required for a password.

[read-only]
static
PasswordAttemptWindowint.

Gets the time window between which consecutive failed attempts to provide a valid password or password answer are tracked.

[read-only]
static
PasswordStrengthRegularExpressionstring.

Gets the regular expression used to evaluate a password.

[read-only]
static
ProviderMembershipProvider.

Gets a reference to the default membership provider for the application.

[read-only]
static
ProvidersMembershipProviderCollection.

Gets a collection of the membership providers for the ASP.NET application.

[read-only]
static
RequiresQuestionAndAnswerbool.

Gets a value indicating whether the default membership provider requires the user to answer a password question for password reset and retrieval.

[read-only]
static
UserIsOnlineTimeWindowint.

Specifies the number of minutes after the last-activity date/time stamp for a user during which the user is considered online.

Public Methods

static
CreateUser(string, string) : MembershipUser

Adds a new user to the data store.

static
CreateUser(string, string, string) : MembershipUser

Adds a new user with a specified e-mail address to the data store.

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

Deletes a user and any related user data from the database.

static
DeleteUser(string, bool) : bool

Deletes a user from the database.

static
FindUsersByEmail(string) : MembershipUserCollection

Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.

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

Gets a collection of membership users where the user name contains the specified user name to match.

static
FindUsersByName(string, int, int, out int) : MembershipUserCollection
Documentation for this section has not yet been entered.
static
GeneratePassword(int, int) : string

Generates a random password of the specified length.

static
GetAllUsers() : MembershipUserCollection

Gets a collection of all the users in the database.

static
GetAllUsers(int, int, out int) : MembershipUserCollection
Documentation for this section has not yet been entered.
static
GetNumberOfUsersOnline() : int

Gets the number of users currently accessing an application.

static
GetUser() : MembershipUser

Gets the information from the data source and updates the last-activity date/time stamp for the current logged-on membership user.

static
GetUser(bool) : MembershipUser

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.

static
GetUser(object) : MembershipUser

Gets the information from the data source for the membership user associated with the specified unique identifier.

static
GetUser(string) : MembershipUser

Gets the information from the data source for the specified membership user.

static
GetUser(object, bool) : MembershipUser

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.

static
GetUser(string, bool) : MembershipUser

Gets the information from the data source for the specified membership user. Updates the last-activity date/time stamp for the user, if specified.

static
GetUserNameByEmail(string) : string

Gets a user name where the e-mail address for the user matches the specified e-mail address.

static
UpdateUser(MembershipUser)

Updates the database with the information for the specified user.

static
ValidateUser(string, string) : bool

Verifies that the supplied user name and password are valid.

Public Events

static
ValidatingPassword

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