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 | |
---|---|---|
UserValidator<TUser> | Constructor |
Top
Properties
Name | Description | |
---|---|---|
AllowOnlyAlphanumericUserNames | Only allow [A-Za-z0-9] in UserNames |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
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.