UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetTokenAsync(TUser, String, String, String, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetTokenAsync(TUser, String, String, String, CancellationToken) UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetTokenAsync(TUser, String, String, String, CancellationToken) Method

Definition

Sets the token value for a particular user.

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

Parameters

user
TUser TUser TUser

The user.

loginProvider
String String String

The authentication provider for the token.

name
String String String

The name of the token.

value
String String String

The value of the token.

cancellationToken
CancellationToken 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