UserValidator<TUser, TKey>.AllowOnlyAlphanumericUserNames Property

Gets or sets whether to allow only alphanumeric characters for the user name.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Property AllowOnlyAlphanumericUserNames As Boolean 
    Get 
    Set
'Usage
Dim instance As UserValidator 
Dim value As Boolean 

value = instance.AllowOnlyAlphanumericUserNames

instance.AllowOnlyAlphanumericUserNames = value
public bool AllowOnlyAlphanumericUserNames { get; set; }
public:
property bool AllowOnlyAlphanumericUserNames {
    bool get ();
    void set (bool value);
}
member AllowOnlyAlphanumericUserNames : bool with get, set
function get AllowOnlyAlphanumericUserNames () : boolean 
function set AllowOnlyAlphanumericUserNames (value : boolean)

Property Value

Type: System.Boolean
true to allow only alphanumeric characters for the user name; otherwise, false.

See Also

Reference

UserValidator<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity