IUserPhoneNumberStore<TUser>.SetPhoneNumberAsync 方法

定义

设置指定 user的电话号码。

public:
 System::Threading::Tasks::Task ^ SetPhoneNumberAsync(TUser user, System::String ^ phoneNumber, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetPhoneNumberAsync (TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetPhoneNumberAsync (TUser user, string? phoneNumber, System.Threading.CancellationToken cancellationToken);
abstract member SetPhoneNumberAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetPhoneNumberAsync (user As TUser, phoneNumber As String, cancellationToken As CancellationToken) As Task

参数

user
TUser

应设置其电话号码的用户。

phoneNumber
String

要设置的电话号码。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示异步操作的 Task

适用于