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

定义

删除用户的令牌。

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

参数

user
TUser

用户。

loginProvider
String

令牌的身份验证提供程序。

name
String

令牌的名称。

cancellationToken
CancellationToken

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

返回

表示异步操作的 Task

实现

适用于