UserManager<TUser, TKey>.NotifyTwoFactorTokenAsync Method
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)
'Declaration
Public Overridable Function NotifyTwoFactorTokenAsync ( _
userId As TKey, _
twoFactorProvider As String, _
token As String _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim twoFactorProvider As String
Dim token As String
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.NotifyTwoFactorTokenAsync(userId, _
twoFactorProvider, token)
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 function NotifyTwoFactorTokenAsync(
userId : TKey,
twoFactorProvider : String,
token : String
) : Task<IdentityResult>
- userId
Type: TKey
The user ID.
- twoFactorProvider
Type: System.String
The two factor provider.
- token
Type: System.String
The token.
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class