Click or drag to resize
CMSMembershipProvider Class
Class providing membership management.
Inheritance Hierarchy

Namespace: CMS.MembershipProvider
Assembly: CMS.MembershipProvider (in CMS.MembershipProvider.dll) Version: 9.0.0
Syntax
C#
public class CMSMembershipProvider : MembershipProvider

The CMSMembershipProvider type exposes the following members.

Constructors
  NameDescription
Public methodCMSMembershipProvider
Top
Properties
  NameDescription
Public propertyApplicationName
Applicaton name.
(Overrides MembershipProviderApplicationName.)
Public propertyDescription
Description.
(Overrides ProviderBaseDescription.)
Public propertyEnablePasswordReset
Enable password reset.
(Overrides MembershipProviderEnablePasswordReset.)
Public propertyEnablePasswordRetrieval
Enable password retrieval.
(Overrides MembershipProviderEnablePasswordRetrieval.)
Public propertyMaxInvalidPasswordAttempts
Maximum invalid password attempts.
(Overrides MembershipProviderMaxInvalidPasswordAttempts.)
Public propertyMinRequiredNonAlphanumericCharacters
Minimum required nonalphanumeric characters.
(Overrides MembershipProviderMinRequiredNonAlphanumericCharacters.)
Public propertyMinRequiredPasswordLength
Minimum required password length.
(Overrides MembershipProviderMinRequiredPasswordLength.)
Public propertyName
Name.
(Overrides ProviderBaseName.)
Public propertyPasswordAttemptWindow
Password attempt window.
(Overrides MembershipProviderPasswordAttemptWindow.)
Public propertyPasswordFormat
Password format.
(Overrides MembershipProviderPasswordFormat.)
Public propertyPasswordStrengthRegularExpression
Password strength regular expression.
(Overrides MembershipProviderPasswordStrengthRegularExpression.)
Public propertyRequiresQuestionAndAnswer
Required question and aswer.
(Overrides MembershipProviderRequiresQuestionAndAnswer.)
Public propertyRequiresUniqueEmail
Requires unique email.
(Overrides MembershipProviderRequiresUniqueEmail.)
Top
Methods
  NameDescription
Public methodCreateUser
Creates new user.
(Overrides MembershipProviderCreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus).)
Public methodDeleteUser
Deletes user specified by username.
(Overrides MembershipProviderDeleteUser(String, Boolean).)
Public methodFindUsersByEmail
Gets a collection of membership users where the e-mail address contains the specified e-mail address to match.
(Overrides MembershipProviderFindUsersByEmail(String, Int32, Int32, Int32).)
Public methodFindUsersByName
Gets a collection of membership users where the user name contains the specified user name to match.
(Overrides MembershipProviderFindUsersByName(String, Int32, Int32, Int32).)
Public methodGetAllUsers
Gets a collection of all the users in DB.
(Overrides MembershipProviderGetAllUsers(Int32, Int32, Int32).)
Public methodGetNumberOfUsersOnline
Returns number of online users. Monitor online users feature must be enabled.
(Overrides MembershipProviderGetNumberOfUsersOnline.)
Public methodGetPassword
Gets password of user specified by username.
(Overrides MembershipProviderGetPassword(String, String).)
Public methodGetUser(UserInfo)
Returns MembershipUser object containing data of user specified by his name.
Public methodGetUser(Object, Boolean)
Returns MembershipUser object containing data of user specified by providerUserKey.
(Overrides MembershipProviderGetUser(Object, Boolean).)
Public methodGetUser(String, Boolean)
Returns MembershipUser object containing data of user specified by his name.
(Overrides MembershipProviderGetUser(String, Boolean).)
Public methodGetUserNameByEmail
Gets user name of user with given email.
(Overrides MembershipProviderGetUserNameByEmail(String).)
Public methodChangePassword
Changes Password of user specified by username.
(Overrides MembershipProviderChangePassword(String, String, String).)
Public methodChangePasswordQuestionAndAnswer
As password questions and answers are not implemented in UserInfo, this metod returns true.
(Overrides MembershipProviderChangePasswordQuestionAndAnswer(String, String, String, String).)
Public methodInitialize
Initializes the provider.
(Overrides ProviderBaseInitialize(String, NameValueCollection).)
Public methodMFValidateCredentials
Checks if user can be authenticated.
Public methodMFValidatePasscode(String, String)
Validates entered passcode for user. Partial validation is checked. This method should be used when validating passcode in multi-step scenario.
Public methodMFValidatePasscode(UserInfo, String, Boolean)
Validates entered passcode for user. Checks passcode only.
Public methodResetPassword
Sets password of user specified by user name to empty string.
(Overrides MembershipProviderResetPassword(String, String).)
Public methodUnlockUser
Sets 'Enabled' property of user specified by user name to 'True'.
(Overrides MembershipProviderUnlockUser(String).)
Public methodUpdateUser
Updates data of specified user.
(Overrides MembershipProviderUpdateUser(MembershipUser).)
Public methodValidateUser
Checks whether given password matches the password of user specified by username.
(Overrides MembershipProviderValidateUser(String, String).)
Top
See Also