SignInManager<TUser>.PreSignInCheck(TUser) 方法

定义

用于确保允许用户登录。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ PreSignInCheck(TUser user);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PreSignInCheck (TUser user);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult?> PreSignInCheck (TUser user);
abstract member PreSignInCheck : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.PreSignInCheck : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Protected Overridable Function PreSignInCheck (user As TUser) As Task(Of SignInResult)

参数

user
TUser

用户

返回

如果应允许用户登录,则为 Null,否则应拒绝用户的 SignInResult。

适用于