AppBuilderExtensions.UseTwoFactorSignInCookie Method
Configures a cookie intended to be used to store the partial credentials for two factor authentication.
Namespace: Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub UseTwoFactorSignInCookie ( _
app As IAppBuilder, _
authenticationType As String, _
expires As TimeSpan _
)
'Usage
Dim app As IAppBuilder
Dim authenticationType As String
Dim expires As TimeSpan
app.UseTwoFactorSignInCookie(authenticationType, _
expires)
public static void UseTwoFactorSignInCookie(
this IAppBuilder app,
string authenticationType,
TimeSpan expires
)
[ExtensionAttribute]
public:
static void UseTwoFactorSignInCookie(
IAppBuilder^ app,
String^ authenticationType,
TimeSpan expires
)
static member UseTwoFactorSignInCookie :
app:IAppBuilder *
authenticationType:string *
expires:TimeSpan -> unit
public static function UseTwoFactorSignInCookie(
app : IAppBuilder,
authenticationType : String,
expires : TimeSpan
)
Parameters
- app
Type: IAppBuilder
The application builder.
- authenticationType
Type: System.String
The authentication type.
- expires
Type: System.TimeSpan
The expiration of the authentication.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. 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).