This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class SqlMembershipProvider
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class SqlMembershipProvider

The type exposes the following members.

Public Constructors

  Name Description
Public method SqlMembershipProvider
Constructor

Public Methods

  Name Description
Public method ChangePassword
Processes a request to update the password for a membership user.
(Overrides MembershipProvider..::ChangePassword(String, String, String).)
Public method ChangePasswordFromRecovery
Changes the password of a user in the password recovery process.
Public method ChangePasswordQuestionAndAnswer
Processes a request to update the password question and answer for a membership user.
(Overrides MembershipProvider..::ChangePasswordQuestionAndAnswer(String, String, String, String).)
Public method ChangePasswordUnauthenticated
Public method CheckHashedPassword
Checks if the password that has been hashed by the login macro matches the password in the database.
Public method Static member CreateSalt
Creates a salt of 32 characters.
Public method CreateUser Overloaded.
Public method Static member Decrypt
Decrypts the password.
Public method DeleteUser
Removes a user from the membership data source.
(Overrides MembershipProvider..::DeleteUser(String, Boolean).)
Public method EncodePassword
Encrypts, Hashes, or leaves the password clear based on the PasswordFormat.
Public method Static member Encrypt
Encrypts the password.
Public method Equals (Inherited from Object.)
Public method FindUsersByEmail
Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
(Overrides MembershipProvider..::FindUsersByEmail(String, Int32, Int32, Int32%).)
Public method FindUsersByName
Gets a collection of membership users where the user name contains the specified user name to match.
(Overrides MembershipProvider..::FindUsersByName(String, Int32, Int32, Int32%).)
Public method GetAllUsers
Gets a collection of all the users in the data source in pages of data.
(Overrides MembershipProvider..::GetAllUsers(Int32, Int32, Int32%).)
Public method Static member GetErrorMessage
Translates a status code into a user friendly error message.
Public method GetHashCode (Inherited from Object.)
Public method GetNumberOfUsersOnline
Gets the number of users currently accessing the application.
(Overrides MembershipProvider..::GetNumberOfUsersOnline()()()().)
Public method GetPassword
Gets the password for the specified user name from the data source.
(Overrides MembershipProvider..::GetPassword(String, String).)
Public method GetPasswordEncryptionFormat Overloaded.
Public method GetType (Inherited from Object.)
Public method GetUser Overloaded.
Public method GetUserNameByEmail
Gets the user name associated with the specified e-mail address.
(Overrides MembershipProvider..::GetUserNameByEmail(String).)
Public method Initialize
Public method InitiatePasswordRecovery
Public method ResetPassword
Resets a user's password to a new, automatically generated password.
(Overrides MembershipProvider..::ResetPassword(String, String).)
Public method ToString (Inherited from Object.)
Public method UnlockUser
Clears a lock so that the membership user can be validated.
(Overrides MembershipProvider..::UnlockUser(String).)
Public method UpdateUser
Updates information about a user in the data source.
(Overrides MembershipProvider..::UpdateUser(MembershipUser).)
Public method ValidateUser Overloaded.

Protected Methods

  Name Description
Protected method DecryptPassword (Inherited from MembershipProvider.)
Protected method EncryptPassword (Inherited from MembershipProvider.)
Protected method EncryptPassword (Inherited from MembershipProvider.)
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnValidatingPassword (Inherited from MembershipProvider.)

Public Properties

  Name Description
Public property ApplicationName
The name of the application using the custom provider. The ApplicationName is used to identify users specific to an application. That is, the same user name can exist in the database for multiple ASP.NET applications that specify a different ApplicationName.
(Overrides MembershipProvider..::ApplicationName.)
Public property Static member Current
The current Smartsite SQL Membership Provider
Public property Description (Inherited from ProviderBase.)
Public property EnablePasswordReset
Indicates whether you can use the ResetPassword method to reset a user's password.
(Overrides MembershipProvider..::EnablePasswordReset.)
Public property EnablePasswordRetrieval
Indicates whether the membership provider is configured to allow users to retrieve their passwords.
(Overrides MembershipProvider..::EnablePasswordRetrieval.)
Public property MaxInvalidPasswordAttempts
The number of invalid password or password-answer attempts allowed before the membership user is locked out.
(Overrides MembershipProvider..::MaxInvalidPasswordAttempts.)
Public property MinRequiredNonAlphanumericCharacters
The minimum number of special characters that must be present in a valid password.
(Overrides MembershipProvider..::MinRequiredNonAlphanumericCharacters.)
Public property MinRequiredPasswordLength
The minimum length required for a password.
(Overrides MembershipProvider..::MinRequiredPasswordLength.)
Public property Name (Inherited from ProviderBase.)
Public property PasswordAttemptWindow
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.
(Overrides MembershipProvider..::PasswordAttemptWindow.)
Public property PasswordFormat
The format for storing passwords in the membership data store. - Clear: Passwords are not encrypted. - Encrypted: Passwords are encrypted using the encryption settings determined by the machineKey element configuration. - Hashed: Passwords are encrypted one-way using the SHA1 hashing algorithm. You can specify a hashing algorithm different than the SHA1 algorithm using the hashAlgorithmType attribute.
(Overrides MembershipProvider..::PasswordFormat.)
Public property PasswordStrengthRegularExpression
The regular expression used to evaluate a password.
(Overrides MembershipProvider..::PasswordStrengthRegularExpression.)
Public property RequiresQuestionAndAnswer
Indicates whether the membership provider is configured to require the user to answer a password question for password reset and retrieval.
(Overrides MembershipProvider..::RequiresQuestionAndAnswer.)
Public property RequiresUniqueEmail
Indicates whether the membership provider is configured to require a unique e-mail address for each user name.
(Overrides MembershipProvider..::RequiresUniqueEmail.)
Public property WriteExceptionsToEventLog
If false, exceptions are thrown to the caller. If true, exceptions are written to the event log.

Public Events

  Name Description
Public event ValidatingPassword (Inherited from MembershipProvider.)

Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method IMembershipProvider..::..UpdateLastLoginDate
Explicit interface implemetation Private method IMembershipProvider..::..UpdatePasswordFailureCount
Helper method that performs the checks and updates associated with password failure tracking.

See Also

Advanced