共用方式為


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserLoginAsync 方法

定義

多載

FindUserLoginAsync(String, String, CancellationToken)

如果提供者存在,則傳回使用者登入 providerKey。

FindUserLoginAsync(TKey, String, String, CancellationToken)

如果存在,則傳回具有相符 userId、provider、providerKey 的使用者登入。

FindUserLoginAsync(String, String, CancellationToken)

來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs

如果提供者存在,則傳回使用者登入 providerKey。

protected:
 abstract System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
abstract member FindUserLoginAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserLogin (requires 'UserLogin :> Microsoft.AspNetCore.Identity.IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin))>
Protected MustOverride 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)

來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs
來源:
UserStoreBase.cs

如果存在,則傳回具有相符 userId、provider、providerKey 的使用者登入。

protected:
 abstract System::Threading::Tasks::Task<TUserLogin> ^ FindUserLoginAsync(TKey userId, System::String ^ loginProvider, System::String ^ providerKey, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserLogin> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserLogin?> FindUserLoginAsync (TKey userId, string loginProvider, string providerKey, System.Threading.CancellationToken cancellationToken);
abstract member 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 MustOverride Function FindUserLoginAsync (userId As TKey, loginProvider As String, providerKey As String, cancellationToken As CancellationToken) As Task(Of TUserLogin)

參數

userId
TKey

使用者的識別碼。

loginProvider
String

登入提供者名稱。

providerKey
String

提供的 loginProvider 金鑰,用來識別使用者。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

Task<TUserLogin>

如果使用者存在,則登入。

適用於