UserManager<TUser, TKey>.SetPhoneNumberAsync Method (TKey, String)
Sets a user phone number.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<IdentityResult> SetPhoneNumberAsync(
TKey userId,
string phoneNumber
)
public:
virtual Task<IdentityResult^>^ SetPhoneNumberAsync(
TKey userId,
String^ phoneNumber
)
abstract SetPhoneNumberAsync :
userId:'TKey *
phoneNumber:string -> Task<IdentityResult>
override SetPhoneNumberAsync :
userId:'TKey *
phoneNumber:string -> Task<IdentityResult>
Public Overridable Function SetPhoneNumberAsync (
userId As TKey,
phoneNumber As String
) As Task(Of IdentityResult)
Parameters
userId
Type: TKeyThe user ID.
phoneNumber
Type: System.StringThe phone number.
Return Value
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top