共用方式為


IUserPhoneNumberStore<TUser>.SetPhoneNumberConfirmedAsync 方法

定義

設定旗標,指出指定的 user 電話號碼是否已確認。

public:
 System::Threading::Tasks::Task ^ SetPhoneNumberConfirmedAsync(TUser user, bool confirmed, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SetPhoneNumberConfirmedAsync (TUser user, bool confirmed, System.Threading.CancellationToken cancellationToken);
abstract member SetPhoneNumberConfirmedAsync : 'User * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetPhoneNumberConfirmedAsync (user As TUser, confirmed As Boolean, cancellationToken As CancellationToken) As Task

參數

user
TUser

應該設定電話號碼確認狀態的使用者。

confirmed
Boolean

旗標,指出是否已確認使用者的電話號碼。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

表示非同步作業的 Task

適用於