共用方式為


UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.SetPhoneNumberAsync 方法

定義

設定指定 user 之 的電話號碼。

public virtual System.Threading.Tasks.Task SetPhoneNumberAsync (TUser user, string phoneNumber, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task SetPhoneNumberAsync (TUser user, string? phoneNumber, System.Threading.CancellationToken cancellationToken = default);
abstract member SetPhoneNumberAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SetPhoneNumberAsync : 'User * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SetPhoneNumberAsync (user As TUser, phoneNumber As String, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

user
TUser

應設定電話號碼的使用者。

phoneNumber
String

要設定的電話號碼。

cancellationToken
CancellationToken

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

傳回

表示非同步作業的 Task

實作

適用於