UserManager<TUser>.RemoveAuthenticationTokenAsync 方法

定义

删除用户的身份验证令牌。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ RemoveAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName);
abstract member RemoveAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemoveAuthenticationTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function RemoveAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String) As Task(Of IdentityResult)

参数

user
TUser
loginProvider
String

与令牌关联的提供程序的身份验证方案。

tokenName
String

令牌的名称。

返回

是否删除了令牌。

适用于