IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorRememberMeCookie 方法

定义

添加用于两个因素的标识 Cookie 记住我。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^ AddTwoFactorRememberMeCookie(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> AddTwoFactorRememberMeCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddTwoFactorRememberMeCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
<Extension()>
Public Function AddTwoFactorRememberMeCookie (builder As AuthenticationBuilder) As OptionsBuilder(Of CookieAuthenticationOptions)

参数

builder
AuthenticationBuilder

当前的 AuthenticationBuilder 实例。

返回

OptionsBuilder<TOptions>可用于配置 Cookie 身份验证的 。

适用于