UserManager<TUser>.ChangePhoneNumberAsync(TUser, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the phone number for the specified user
if the specified
change token
is valid.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ChangePhoneNumberAsync(TUser user, System::String ^ phoneNumber, System::String ^ token);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ChangePhoneNumberAsync (TUser user, string phoneNumber, string token);
abstract member ChangePhoneNumberAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ChangePhoneNumberAsync : 'User * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ChangePhoneNumberAsync (user As TUser, phoneNumber As String, token As String) As Task(Of IdentityResult)
Parameters
- user
- TUser
The user whose phone number to set.
- phoneNumber
- String
The phone number to set.
- token
- String
The phone number confirmation token to validate.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.