共用方式為


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 驗證。

適用於