Export (0) Print
Expand All

Membership Members

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

(see also Protected Methods )
  Name Description
Public method Static CreateUser Overloaded. Adds a new user to the data store.
Public method Static DeleteUser Overloaded. Deletes a user from the database.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static FindUsersByEmail Overloaded. Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
Public method Static FindUsersByName Overloaded. Gets a collection of membership users where the user name contains the specified user name to match.
Public method Static GeneratePassword Generates a random password of the specified length.
Public method Static GetAllUsers Overloaded. Gets a collection of the users in the database.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static GetNumberOfUsersOnline Gets the number of users currently accessing an application.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static GetUser Overloaded. Gets the information for a membership user from the data source.
Public method Static GetUserNameByEmail Gets a user name where the e-mail address for the user matches the specified e-mail address.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Static UpdateUser Updates the database with the information for the specified user.
Public method Static ValidateUser Verifies that the supplied user name and password are valid.
Top

  Name Description
Protected method 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)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft