Export (0) Print
Expand All

SimpleMembershipProvider.PasswordStrengthRegularExpression Property

Gets the regular expression that is used to evaluate password complexity.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public override string PasswordStrengthRegularExpression { get; }

Property Value

Type: System.String
The regular expression that is used to evaluate password complexity.

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.

Show:
© 2014 Microsoft