Export (0) Print
Expand All

Membership Members

Validates user credentials and manages user settings. This class cannot be inherited.

The Membership type exposes the following members.

  NameDescription
Public method Static member CreateUser Overloaded. Adds a new user to the data store.
Public method Static member DeleteUser Overloaded. Deletes a user from the database.
Public method Static member FindUsersByEmail Overloaded. Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
Public method Static member FindUsersByName Overloaded. Gets a collection of membership users where the user name contains the specified user name to match.
Public method Static member GeneratePassword Generates a random password of the specified length.
Public method Static member GetAllUsers Overloaded. Gets a collection of the users in the database.
Public method Static member GetNumberOfUsersOnline Gets the number of users currently accessing an application.
Public method Static member GetUser Overloaded. Gets the information for a membership user from the data source.
Public method Static member GetUserNameByEmail Gets a user name where the e-mail address for the user matches the specified e-mail address.
Public method Static member UpdateUser Updates the database with the information for the specified user.
Public method Static member ValidateUser Verifies that the supplied user name and password are valid.
Top

  NameDescription
Public property Static member ApplicationName Gets or sets the name of the application.
Public property Static member EnablePasswordReset Gets a value indicating whether the current membership provider is configured to allow users to reset their passwords.
Public property Static member EnablePasswordRetrieval Gets a value indicating whether the current membership provider is configured to allow users to retrieve their passwords.
Public property Static member HashAlgorithmType The identifier of the algorithm used to hash passwords.
Public property Static member MaxInvalidPasswordAttempts Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out.
Public property Static member MinRequiredNonAlphanumericCharacters Gets the minimum number of special characters that must be present in a valid password.
Public property Static member MinRequiredPasswordLength Gets the minimum length required for a password.
Public property Static member PasswordAttemptWindow Gets the time window between which consecutive failed attempts to provide a valid password or password answer are tracked.
Public property Static member PasswordStrengthRegularExpression Gets the regular expression used to evaluate a password.
Public property Static member Provider Gets a reference to the default membership provider for the application.
Public property Static member Providers Gets a collection of the membership providers for the ASP.NET application.
Public property Static member RequiresQuestionAndAnswer Gets a value indicating whether the default membership provider requires the user to answer a password question for password reset and retrieval.
Public property Static member UserIsOnlineTimeWindow Specifies the number of minutes after the last-activity date/time stamp for a user during which the user is considered online.
Top

  NameDescription
Public event Static member ValidatingPassword Occurs when a user is created, a password is changed, or a password is reset.
Top

Community Additions

ADD
Show:
© 2014 Microsoft