SimpleMembershipProvider.MinRequiredNonAlphanumericCharacters Property

Gets the minimum number of special (non-alphanumeric) characters that a password must contain.

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

Syntax

'Declaration
Public Overrides ReadOnly Property MinRequiredNonAlphanumericCharacters As Integer 
    Get
'Usage
Dim instance As SimpleMembershipProvider 
Dim value As Integer 

value = instance.MinRequiredNonAlphanumericCharacters
public override int MinRequiredNonAlphanumericCharacters { get; }
public:
virtual property int MinRequiredNonAlphanumericCharacters {
    int get () override;
}
abstract MinRequiredNonAlphanumericCharacters : int 
override MinRequiredNonAlphanumericCharacters : int
override function get MinRequiredNonAlphanumericCharacters () : int

Property Value

Type: System.Int32
The minimum number of special characters that a password must contain.

Remarks

The MinRequiredNonAlphanumericCharacters property value is set in the application configuration file (Web.config) using the minRequiredNonalphanumericCharacters attribute of the membership configuration element.

A non-alphanumeric character is a character for which the IsLetterOrDigit method returns false.

See Also

Reference

SimpleMembershipProvider Class

WebMatrix.WebData Namespace