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

定义

返回标记值。

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task<string> GetTokenAsync (TUser user, string loginProvider, string name, System.Threading.CancellationToken cancellationToken);
public virtual 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 Overridable 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

实现

适用于