IUserAuthenticationTokenStore<TUser>.RemoveTokenAsync 方法

定义

删除用户的令牌。

public:
 System::Threading::Tasks::Task ^ RemoveTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ name, System::Threading::CancellationToken cancellationToken);
public 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
Public 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

适用于