Dela via


UserValidator<TUser>.ValidateAsync Method

Definition

Validates the specified user as an asynchronous operation.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidateAsync(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user);
abstract member ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ValidateAsync (manager As UserManager(Of TUser), user As TUser) As Task(Of IdentityResult)

Parameters

manager
UserManager<TUser>

The UserManager<TUser> that can be used to retrieve user properties.

user
TUser

The user to validate.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the validation operation.

Implements

Applies to