Share via


UserValidator<TUser> Class

Validates users before they are saved to an IUserStore

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Identity.UserValidator<TUser>

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

Syntax

'Declaration
Public Class UserValidator(Of TUser As IUser) _
    Implements IIdentityValidator(Of TUser)
'Usage
Dim instance As UserValidator(Of TUser)
public class UserValidator<TUser> : IIdentityValidator<TUser>
where TUser : IUser
generic<typename TUser>
where TUser : IUser 
public ref class UserValidator : IIdentityValidator<TUser>
type UserValidator<'TUser when 'TUser : IUser> =  
    class 
        interface IIdentityValidator<'TUser>
    end
JScript does not support generic types and methods.

Type Parameters

  • TUser

The UserValidator<TUser> type exposes the following members.

Constructors

  Name Description
Public method UserValidator<TUser> Constructor

Top

Properties

  Name Description
Public property AllowOnlyAlphanumericUserNames Only allow [A-Za-z0-9] in UserNames

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method ValidateAsync Validates a user before saving

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.Identity Namespace