SimpleMembershipProvider.PasswordStrengthRegularExpression Property
Gets the regular expression that is used to evaluate password complexity.
Namespace: WebMatrix.WebData
Assembly: WebMatrix.WebData (in WebMatrix.WebData.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property PasswordStrengthRegularExpression As String
Get
'Usage
Dim instance As SimpleMembershipProvider
Dim value As String
value = instance.PasswordStrengthRegularExpression
public override string PasswordStrengthRegularExpression { get; }
public:
virtual property String^ PasswordStrengthRegularExpression {
String^ get () override;
}
abstract PasswordStrengthRegularExpression : string
override PasswordStrengthRegularExpression : string
override function get PasswordStrengthRegularExpression () : String
Property Value
Type: System.String
The regular expression that is used to evaluate password complexity.
Remarks
The complexity (strength) of a password can be checked by using a regular expression. For example, the regular expression can check that the password contains non-alphanumeric characters. The PasswordStrengthRegularExpression property is set in the application configuration file (Web.config) using the passwordStrengthRegularExpression attribute of the membership configuration element.