共用方式為


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

定義

傳回權杖值。

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
abstract member GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetTokenAsync : 'User * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetTokenAsync (user As TUser, loginProvider As String, name As String, cancellationToken As CancellationToken) As Task(Of String)

參數

user
TUser

使用者。

loginProvider
String

權杖的驗證提供者。

name
String

權杖的名稱。

cancellationToken
CancellationToken

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

傳回

表示非同步作業的 Task

實作

適用於