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)

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

public class UserValidator<TUser> : UserValidator<TUser, string>
where TUser : class, IUser<string>

Type Parameters

TUser

The type of the user.

NameDescription
System_CAPS_pubmethodUserValidator<TUser>(UserManager<TUser, String>)

Initializes a new instance of the UserValidator<TUser> class.

NameDescription
System_CAPS_pubpropertyAllowOnlyAlphanumericUserNames

Gets or sets whether to allow only alphanumeric characters for the user name.(Inherited from UserValidator<TUser, TKey>.)

System_CAPS_pubpropertyRequireUniqueEmail

Gets or sets whether unique e-mail is needed for validating the user.(Inherited from UserValidator<TUser, TKey>.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidateAsync(TUser)

Asynchronously validates a user before saving.(Inherited from UserValidator<TUser, TKey>.)

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

Return to top
Show: