UserValidator<TUser> Class
Represents a class that validates users before they are saved.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.UserValidator<TUser, TKey>
Microsoft.AspNet.Identity.UserValidator<TUser>
Syntax
public class UserValidator<TUser> : UserValidator<TUser, string>
where TUser : class, IUser<string>
generic<typename TUser>
where TUser : ref class, IUser<String^>
public ref class UserValidator : UserValidator<TUser, String^>
type UserValidator<'TUser when 'TUser : not struct and IUser<string>> =
class
inherit UserValidator<'TUser, string>
end
Public Class UserValidator(Of TUser As { Class, IUser(Of String) })
Inherits UserValidator(Of TUser, String)
Type Parameters
- TUser
The type of the user.
Constructors
Name | Description | |
---|---|---|
UserValidator<TUser>(UserManager<TUser, String>) | Initializes a new instance of the UserValidator<TUser> class. |
Properties
Name | Description | |
---|---|---|
AllowOnlyAlphanumericUserNames | Gets or sets whether to allow only alphanumeric characters for the user name.(Inherited from UserValidator<TUser, TKey>.) |
|
RequireUniqueEmail | Gets or sets whether unique e-mail is needed for validating the user.(Inherited from UserValidator<TUser, TKey>.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
|
ValidateAsync(TUser) | Asynchronously validates a user before saving.(Inherited from UserValidator<TUser, TKey>.) |
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
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top