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 Code |
---|---|
public class SqlMembershipProvider |
Visual Basic (Declaration) | Copy Code |
---|---|
Public Class SqlMembershipProvider |
The type exposes the following members.
Public Constructors
Name | Description | |
---|---|---|
SqlMembershipProvider |
Constructor
|
Public Methods
Name | Description | |
---|---|---|
ChangePassword |
Processes a request to update the password for a membership user.
(Overrides MembershipProvider..::ChangePassword(String, String, String).) |
|
ChangePasswordFromRecovery |
Changes the password of a user in the password recovery process.
|
|
ChangePasswordQuestionAndAnswer |
Processes a request to update the password question and answer for a membership user.
(Overrides MembershipProvider..::ChangePasswordQuestionAndAnswer(String, String, String, String).) |
|
ChangePasswordUnauthenticated | ||
CheckHashedPassword |
Checks if the password that has been hashed by the login macro matches the password in the database.
|
|
CreateSalt |
Creates a salt of 32 characters.
|
|
CreateUser | Overloaded. | |
Decrypt |
Decrypts the password.
|
|
DeleteUser |
Removes a user from the membership data source.
(Overrides MembershipProvider..::DeleteUser(String, Boolean).) |
|
EncodePassword |
Encrypts, Hashes, or leaves the password clear based on the PasswordFormat.
|
|
Encrypt |
Encrypts the password.
|
|
Equals | (Inherited from Object.) | |
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%).) |
|
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%).) |
|
GetAllUsers |
Gets a collection of all the users in the data source in pages of data.
(Overrides MembershipProvider..::GetAllUsers(Int32, Int32, Int32%).) |
|
GetErrorMessage |
Translates a status code into a user friendly error message.
|
|
GetHashCode | (Inherited from Object.) | |
GetNumberOfUsersOnline |
Gets the number of users currently accessing the application.
(Overrides MembershipProvider..::GetNumberOfUsersOnline()()()().) |
|
GetPassword |
Gets the password for the specified user name from the data source.
(Overrides MembershipProvider..::GetPassword(String, String).) |
|
GetPasswordEncryptionFormat | Overloaded. | |
GetType | (Inherited from Object.) | |
GetUser | Overloaded. | |
GetUserNameByEmail |
Gets the user name associated with the specified e-mail address.
(Overrides MembershipProvider..::GetUserNameByEmail(String).) |
|
Initialize | ||
InitiatePasswordRecovery | ||
ResetPassword |
Resets a user's password to a new, automatically generated password.
(Overrides MembershipProvider..::ResetPassword(String, String).) |
|
ToString | (Inherited from Object.) | |
UnlockUser |
Clears a lock so that the membership user can be validated.
(Overrides MembershipProvider..::UnlockUser(String).) |
|
UpdateUser |
Updates information about a user in the data source.
(Overrides MembershipProvider..::UpdateUser(MembershipUser).) |
|
ValidateUser | Overloaded. |
Protected Methods
Name | Description | |
---|---|---|
DecryptPassword | (Inherited from MembershipProvider.) | |
EncryptPassword | (Inherited from MembershipProvider.) | |
EncryptPassword | (Inherited from MembershipProvider.) | |
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
OnValidatingPassword | (Inherited from MembershipProvider.) |
Public Properties
Name | Description | |
---|---|---|
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.) |
|
Current |
The current Smartsite SQL Membership Provider
|
|
Description | (Inherited from ProviderBase.) | |
EnablePasswordReset |
Indicates whether you can use the ResetPassword method to reset a user's password.
(Overrides MembershipProvider..::EnablePasswordReset.) |
|
EnablePasswordRetrieval |
Indicates whether the membership provider is configured to allow users to retrieve
their passwords.
(Overrides MembershipProvider..::EnablePasswordRetrieval.) |
|
MaxInvalidPasswordAttempts |
The number of invalid password or password-answer attempts allowed before the membership
user is locked out.
(Overrides MembershipProvider..::MaxInvalidPasswordAttempts.) |
|
MinRequiredNonAlphanumericCharacters |
The minimum number of special characters that must be present in a valid password.
(Overrides MembershipProvider..::MinRequiredNonAlphanumericCharacters.) |
|
MinRequiredPasswordLength |
The minimum length required for a password.
(Overrides MembershipProvider..::MinRequiredPasswordLength.) |
|
Name | (Inherited from ProviderBase.) | |
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.) |
|
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.) |
|
PasswordStrengthRegularExpression |
The regular expression used to evaluate a password.
(Overrides MembershipProvider..::PasswordStrengthRegularExpression.) |
|
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.) |
|
RequiresUniqueEmail |
Indicates whether the membership provider is configured to require a unique e-mail
address for each user name.
(Overrides MembershipProvider..::RequiresUniqueEmail.) |
|
WriteExceptionsToEventLog |
If false, exceptions are thrown to the caller.
If true, exceptions are written to the event log.
|
Public Events
Name | Description | |
---|---|---|
ValidatingPassword | (Inherited from MembershipProvider.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IMembershipProvider..::..UpdateLastLoginDate | ||
IMembershipProvider..::..UpdatePasswordFailureCount |
Helper method that performs the checks and updates associated with
password failure tracking.
|