UserManager<TUser, TKey>.GeneratePasswordResetTokenAsync Method
Generates a password reset token for the user using the UserTokenProvider.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function GeneratePasswordResetTokenAsync ( _
userId As TKey _
) As Task(Of String)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of String)
returnValue = instance.GeneratePasswordResetTokenAsync(userId)
public virtual Task<string> GeneratePasswordResetTokenAsync(
TKey userId
)
public:
virtual Task<String^>^ GeneratePasswordResetTokenAsync(
TKey userId
)
abstract GeneratePasswordResetTokenAsync :
userId:'TKey -> Task<string>
override GeneratePasswordResetTokenAsync :
userId:'TKey -> Task<string>
public function GeneratePasswordResetTokenAsync(
userId : TKey
) : Task<String>
- userId
Type: TKey
The user ID.
Type: System.Threading.Tasks.Task<String>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class