IUserTokenProvider<TUser, TKey>.ValidateAsync Method (String, String, UserManager<TUser, TKey>, TUser)
Asynchronously validates a token for a user with a specific purpose.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
Task<bool> ValidateAsync(
string purpose,
string token,
UserManager<TUser, TKey> manager,
TUser user
)
Task<bool>^ ValidateAsync(
String^ purpose,
String^ token,
UserManager<TUser, TKey>^ manager,
TUser user
)
abstract ValidateAsync :
purpose:string *
token:string *
manager:UserManager<'TUser, 'TKey> *
user:'TUser -> Task<bool>
Function ValidateAsync (
purpose As String,
token As String,
manager As UserManager(Of TUser, TKey),
user As TUser
) As Task(Of Boolean)
Parameters
purpose
Type: System.StringThe purpose.
token
Type: System.StringThe token.
manager
Type: Microsoft.AspNet.Identity.UserManager<TUser, TKey>The manager.
user
Type: TUserThe user.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
The task object representing the asynchronous operation.
See Also
IUserTokenProvider<TUser, TKey> Interface
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top