次の方法で共有


UserManager<TUser>.SetPhoneNumberAsync(TUser, String) メソッド

定義

指定した の電話番号を設定します user

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetPhoneNumberAsync(TUser user, System::String ^ phoneNumber);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetPhoneNumberAsync (TUser user, string phoneNumber);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetPhoneNumberAsync (TUser user, string? phoneNumber);
abstract member SetPhoneNumberAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetPhoneNumberAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetPhoneNumberAsync (user As TUser, phoneNumber As String) As Task(Of IdentityResult)

パラメーター

user
TUser

電話番号を設定するユーザー。

phoneNumber
String

設定する電話番号。

戻り値

Task操作の を含む非同期操作をIdentityResult表す 。

適用対象