UserManager<TUser, TKey>.GetValidTwoFactorProvidersAsync Method
Returns a list of valid two factor providers for a user.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function GetValidTwoFactorProvidersAsync ( _
userId As TKey _
) As Task(Of IList(Of String))
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of IList(Of String))
returnValue = instance.GetValidTwoFactorProvidersAsync(userId)
public virtual Task<IList<string>> GetValidTwoFactorProvidersAsync(
TKey userId
)
public:
virtual Task<IList<String^>^>^ GetValidTwoFactorProvidersAsync(
TKey userId
)
abstract GetValidTwoFactorProvidersAsync :
userId:'TKey -> Task<IList<string>>
override GetValidTwoFactorProvidersAsync :
userId:'TKey -> Task<IList<string>>
public function GetValidTwoFactorProvidersAsync(
userId : TKey
) : Task<IList<String>>
- userId
Type: TKey
The user ID.
Type: System.Threading.Tasks.Task<IList<String>>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class