UserManager<TUser>.SetPhoneNumberAsync(TUser, String) Método

Definição

Define o número de telefone do especificado 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)

Parâmetros

user
TUser

O usuário cujo número de telefone deve ser definido.

phoneNumber
String

O número de telefone a ser definido.

Retornos

O Task que representa a operação assíncrona, que contém o IdentityResult da operação.

Aplica-se a