Share via


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

public bool AllowOnlyAlphanumericUserNames { get; set; }
public:
property bool AllowOnlyAlphanumericUserNames {
    bool get();
    void set(bool value);
}
member AllowOnlyAlphanumericUserNames : bool with get, set
Public Property AllowOnlyAlphanumericUserNames As Boolean

Property Value

Type: System.Boolean

true to allow only alphanumeric characters for the user name; otherwise, false.

See Also

UserValidator<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top