UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.FindUserLoginAsync 方法

定义

重载

FindUserLoginAsync(String, String, CancellationToken)

返回具有 provider,providerKey 的用户登录名(如果存在)。

FindUserLoginAsync(TKey, String, String, CancellationToken)

返回具有匹配的 userId, provider, providerKey 的用户登录名(如果存在)。

FindUserLoginAsync(String, String, CancellationToken)

Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs

返回具有 provider,providerKey 的用户登录名(如果存在)。

protected:
 override System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>
Protected Overrides Function FindUserLoginAsync (loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUserLogin)

参数

loginProvider
String

登录提供程序名称。

providerKey
String

提供的 loginProvider 用于标识用户的密钥。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

Task<TUserLogin>

用户登录名(如果存在)。

适用于

FindUserLoginAsync(TKey, String, String, CancellationToken)

Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs
Source:
UserStore.cs

返回具有匹配的 userId, provider, providerKey 的用户登录名(如果存在)。

protected:
 override System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(TKey userId, System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
override this.FindUserLoginAsync : 'Key * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>
Protected Overrides Function FindUserLoginAsync (userId As TKey, loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUserLogin)

参数

userId
TKey

用户的 ID。

loginProvider
String

登录提供程序名称。

providerKey
String

提供的 loginProvider 用于标识用户的密钥。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

Task<TUserLogin>

用户登录名(如果存在)。

适用于