UserManager<TUser, TKey>.VerifyUserTokenAsync Method

Verifies a user token with the specified purpose.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)


Public Overridable Function VerifyUserTokenAsync ( _
    userId As TKey, _
    purpose As String, _
    token As String _
) As Task(Of Boolean)
Dim instance As UserManager 
Dim userId As TKey
Dim purpose As String 
Dim token As String 
Dim returnValue As Task(Of Boolean)

returnValue = instance.VerifyUserTokenAsync(userId, _
    purpose, token)
public virtual Task<bool> VerifyUserTokenAsync(
    TKey userId,
    string purpose,
    string token
virtual Task<bool>^ VerifyUserTokenAsync(
    TKey userId, 
    String^ purpose, 
    String^ token
abstract VerifyUserTokenAsync : 
        userId:'TKey * 
        purpose:string * 
        token:string -> Task<bool> 
override VerifyUserTokenAsync : 
        userId:'TKey * 
        purpose:string * 
        token:string -> Task<bool> 
public function VerifyUserTokenAsync(
    userId : TKey, 
    purpose : String, 
    token : String
) : Task<boolean>


  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.

See Also


UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity