UserManager<TUser>.ValidateUserAsync(TUser) Method

Definition

Should return Success if validation is successful. This is called before saving the user via Create or Update.

C#
protected System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateUserAsync (TUser user);

Parameters

user
TUser

The user

Returns

A IdentityResult representing whether validation was successful.

Applies to

منتج الإصدارات
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0