Share via


UserValidator<TUser, TKey>.ValidateAsync Method (TUser)

 

Asynchronously validates a user before saving.

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

Syntax

public virtual Task<IdentityResult> ValidateAsync(
    TUser item
)
public:
virtual Task<IdentityResult^>^ ValidateAsync(
    TUser item
)
abstract ValidateAsync : 
        item:'TUser -> Task<IdentityResult>
override ValidateAsync : 
        item:'TUser -> Task<IdentityResult>
Public Overridable Function ValidateAsync (
    item As TUser
) As Task(Of IdentityResult)

Parameters

  • item
    Type: TUser

    The item to validate.

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>

The task object representing the asynchronous operation.

Implements

IIdentityValidator<T>.ValidateAsync(T)

See Also

UserValidator<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top