共用方式為


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

適用於