Adding Properties to Our Custom MembershipProvider Class - Creating a Custom Membership Provider and Membership User utilizing a Data Set Table Adapter - Step 6
We now want to setup our properties for our custom SSSMembershipProvider class. In the below block of code, we will define variables to use in pulling the properties as setup within the web.config file.
#Region "Properties from web.config"
' Properties from web.config, default all to False
Private m_EnablePasswordReset As Boolean = False
Private m_EnablePasswordRetrieval As Boolean = False
Private m_RequiresQuestionAndAnswer As Boolean = False
Private m_RequiresUniqueEmail As Boolean = False
Private m_ApplicationName As String = String.Empty
Private m_PasswordStrengthRegularExpression As String = String.Empty
Private m_MaxAllowedPasswordLength As Integer = 0
Private m_MaxInvalidPasswordAttempts As Integer = 0
Private m_MinRequiredNonAlphanumericCharacters As Integer = 0
Private m_MinRequiredPasswordLength As Integer = 0
Private m_PasswordAttemptWindow As Integer = 10
Private m_PasswordFormat As System.Web.Security.MembershipPasswordFormat = MembershipPasswordFormat.Clear
#End Region
Read the complete article here...