Share via


SignInManager<TUser>.GetTwoFactorAuthenticationUserAsync 方法

定义

TUser获取当前双因素身份验证登录名的 ,作为异步操作。

public:
 virtual System::Threading::Tasks::Task<TUser> ^ GetTwoFactorAuthenticationUserAsync();
public virtual System.Threading.Tasks.Task<TUser> GetTwoFactorAuthenticationUserAsync ();
public virtual System.Threading.Tasks.Task<TUser?> GetTwoFactorAuthenticationUserAsync ();
abstract member GetTwoFactorAuthenticationUserAsync : unit -> System.Threading.Tasks.Task<'User (requires 'User : null)>
override this.GetTwoFactorAuthenticationUserAsync : unit -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Overridable Function GetTwoFactorAuthenticationUserAsync () As Task(Of TUser)

返回

Task<TUser>

表示异步操作的任务对象,其中包含 TUser 登录尝试的 。

适用于