CookieExtensions.AddCookie Yöntem

Tanım

Aşırı Yüklemeler

AddCookie(AuthenticationBuilder)

Varsayılan şemayı kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler. Varsayılan düzen tarafından AuthenticationSchemebelirtilir.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Varsayılan şemayı kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler. Varsayılan düzen tarafından AuthenticationSchemebelirtilir.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

AddCookie(AuthenticationBuilder, String)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

AddCookie(AuthenticationBuilder)

Varsayılan şemayı kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler. Varsayılan düzen tarafından AuthenticationSchemebelirtilir.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder) As AuthenticationBuilder

Parametreler

Döndürülenler

İşlem tamamlandıktan sonra başvurusu builder .

Şunlara uygulanır

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Varsayılan şemayı kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler. Varsayılan düzen tarafından AuthenticationSchemebelirtilir.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametreler

configureOptions
Action<CookieAuthenticationOptions>

yapılandırmak CookieAuthenticationOptionsiçin bir temsilci.

Döndürülenler

İşlem tamamlandıktan sonra başvurusu builder .

Şunlara uygulanır

AddCookie(AuthenticationBuilder, String)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

Parametreler

authenticationScheme
String

Kimlik doğrulama düzeni.

Döndürülenler

İşlem tamamlandıktan sonra başvurusu builder .

Şunlara uygulanır

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametreler

authenticationScheme
String

Kimlik doğrulama düzeni.

configureOptions
Action<CookieAuthenticationOptions>

yapılandırmak CookieAuthenticationOptionsiçin bir temsilci.

Döndürülenler

İşlem tamamlandıktan sonra başvurusu builder .

Şunlara uygulanır

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Belirtilen düzeni kullanarak tanımlama AuthenticationBuilder bilgisi kimlik doğrulaması ekler.

Tanımlama bilgisi kimlik doğrulaması, kimlik doğrulaması gerçekleştirmek için istemcide kalıcı olan bir HTTP tanımlama bilgisi kullanır.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametreler

authenticationScheme
String

Kimlik doğrulama düzeni.

displayName
String

Kimlik doğrulama işleyicisi için görünen ad.

configureOptions
Action<CookieAuthenticationOptions>

yapılandırmak CookieAuthenticationOptionsiçin bir temsilci.

Döndürülenler

İşlem tamamlandıktan sonra başvurusu builder .

Şunlara uygulanır