Delen via


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.RemoveTokenAsync Method

Definition

Deletes a token for a user.

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

Parameters

user
TUser

The user.

loginProvider
String

The authentication provider for the token.

name
String

The name of the token.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation.

Implements

Applies to