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