共用方式為


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

定義

多載

FindUserLoginAsync(String, String, CancellationToken)

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

FindUserLoginAsync(TKey, String, String, CancellationToken)

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

FindUserLoginAsync(String, String, CancellationToken)

來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs

傳回具有提供者、providerKey 的使用者登入。如果存在,則傳回 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)

來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
UserStore.cs
來源:
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

使用者的識別碼。

loginProvider
String

登入提供者名稱。

providerKey
String

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

cancellationToken
CancellationToken

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

傳回

Task<TUserLogin>

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

適用於