UserManager<TUser, TKey>.NotifyTwoFactorTokenAsync Method (TKey, String, String)
Notifies a user with a token using a specific method of two-factor authentication provider.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
public virtual Task<IdentityResult> NotifyTwoFactorTokenAsync(
TKey userId,
string twoFactorProvider,
string token
)
public:
virtual Task<IdentityResult^>^ NotifyTwoFactorTokenAsync(
TKey userId,
String^ twoFactorProvider,
String^ token
)
abstract NotifyTwoFactorTokenAsync :
userId:'TKey *
twoFactorProvider:string *
token:string -> Task<IdentityResult>
override NotifyTwoFactorTokenAsync :
userId:'TKey *
twoFactorProvider:string *
token:string -> Task<IdentityResult>
Public Overridable Function NotifyTwoFactorTokenAsync (
userId As TKey,
twoFactorProvider As String,
token As String
) As Task(Of IdentityResult)
Parameters
userId
Type: TKeyThe user ID.
twoFactorProvider
Type: System.StringThe two factor provider.
token
Type: System.StringThe token.
Return Value
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top