CookieExtensions.AddCookie メソッド

定義

オーバーロード

AddCookie(AuthenticationBuilder)

既定のスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

既定のスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, String)

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

AddCookie(AuthenticationBuilder)

既定のスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

パラメーター

戻り値

操作が完了した後の への builder 参照。

適用対象

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

既定のスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。 既定のスキームは、 で AuthenticationScheme指定されます。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

パラメーター

configureOptions
Action<CookieAuthenticationOptions>

を構成 CookieAuthenticationOptionsするデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象

AddCookie(AuthenticationBuilder, String)

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

パラメーター

authenticationScheme
String

認証スキームです。

戻り値

操作が完了した後の への builder 参照。

適用対象

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

パラメーター

authenticationScheme
String

認証スキームです。

configureOptions
Action<CookieAuthenticationOptions>

を構成 CookieAuthenticationOptionsするデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象

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

指定したスキームを使用して に AuthenticationBuilder Cookie 認証を追加します。

Cookie 認証では、クライアントに永続化された HTTP Cookie を使用して認証を実行します。

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

パラメーター

authenticationScheme
String

認証スキームです。

displayName
String

認証ハンドラーの表示名。

configureOptions
Action<CookieAuthenticationOptions>

を構成 CookieAuthenticationOptionsするデリゲート。

戻り値

操作が完了した後の への builder 参照。

適用対象