AuthenticationManagerExtensions.TwoFactorBrowserRememberedAsync Method
Asynchronously determines whether there is a TwoFactorRememberBrowser cookie for a user.
Namespace: Microsoft.Owin.Security
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function TwoFactorBrowserRememberedAsync ( _
manager As IAuthenticationManager, _
userId As String _
) As Task(Of Boolean)
'Usage
Dim manager As IAuthenticationManager
Dim userId As String
Dim returnValue As Task(Of Boolean)
returnValue = manager.TwoFactorBrowserRememberedAsync(userId)
public static Task<bool> TwoFactorBrowserRememberedAsync(
this IAuthenticationManager manager,
string userId
)
[ExtensionAttribute]
public:
static Task<bool>^ TwoFactorBrowserRememberedAsync(
IAuthenticationManager^ manager,
String^ userId
)
static member TwoFactorBrowserRememberedAsync :
manager:IAuthenticationManager *
userId:string -> Task<bool>
public static function TwoFactorBrowserRememberedAsync(
manager : IAuthenticationManager,
userId : String
) : Task<boolean>
Parameters
- manager
Type: Microsoft.Owin.Security.IAuthenticationManager
The authentication manager.
- userId
Type: System.String
The user ID.
Return Value
Type: System.Threading.Tasks.Task<Boolean>
A task that returns true if there is a TwoFactorRememberBrowser cookie for a user; otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAuthenticationManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).
See Also
Reference
AuthenticationManagerExtensions Class
Microsoft.Owin.Security Namespace