Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Verifies whether the code is valid for a specific user and for a specific phone number.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function VerifyChangePhoneNumberTokenAsync ( _
userId As TKey, _
token As String, _
phoneNumber As String _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim token As String
Dim phoneNumber As String
Dim returnValue As Task(Of Boolean)
returnValue = instance.VerifyChangePhoneNumberTokenAsync(userId, _
token, phoneNumber)
public virtual Task<bool> VerifyChangePhoneNumberTokenAsync(
TKey userId,
string token,
string phoneNumber
)
public:
virtual Task<bool>^ VerifyChangePhoneNumberTokenAsync(
TKey userId,
String^ token,
String^ phoneNumber
)
abstract VerifyChangePhoneNumberTokenAsync :
userId:'TKey *
token:string *
phoneNumber:string -> Task<bool>
override VerifyChangePhoneNumberTokenAsync :
userId:'TKey *
token:string *
phoneNumber:string -> Task<bool>
public function VerifyChangePhoneNumberTokenAsync(
userId : TKey,
token : String,
phoneNumber : String
) : Task<boolean>
- userId
Type: TKey
The user ID.
- token
Type: System.String
The specified token.
- phoneNumber
Type: System.String
The phone number.
Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class