IUserStore<TUser>.SetUserNameAsync(TUser, String, CancellationToken) IUserStore<TUser>.SetUserNameAsync(TUser, String, CancellationToken) Method

Definition

Sets the given userName for the specified user.

public System.Threading.Tasks.Task SetUserNameAsync (TUser user, string userName, System.Threading.CancellationToken cancellationToken);
abstract member SetUserNameAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

The user whose name should be set.

userName
String String

The user name to set.

cancellationToken
CancellationToken CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Applies to