UserValidator<TUser, TKey> 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, TKey> : IIdentityValidator<TUser>
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>

Type Parameters

TUser

The type of the user in the validator.

TKey

The type of the keys in the validator.

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

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

NameDescription
System_CAPS_pubpropertyAllowOnlyAlphanumericUserNames

Gets or sets whether to allow only alphanumeric characters for the user name.

System_CAPS_pubpropertyRequireUniqueEmail

Gets or sets whether unique e-mail is needed for validating the user.

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.

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: