Freigeben über


IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorRememberMeCookie Methode

Definition

Fügt das Identitätscooky hinzu, das für die zweistufige Erinnerung an mich verwendet wird.

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)

Parameter

builder
AuthenticationBuilder

Die aktuelle AuthenticationBuilder-Instanz.

Gibt zurück

Die OptionsBuilder<TOptions> , die zum Konfigurieren der Cookieauthentifizierung verwendet werden kann.

Gilt für: