次の方法で共有


IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorRememberMeCookie メソッド

定義

2 要素の記憶に使用される ID 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 認証を構成するために使用できる 。

適用対象