共用方式為


IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies 方法

定義

多載

AddIdentityCookies(AuthenticationBuilder)

新增 Cookie 驗證。

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

新增登入管理員所需的 Cookie 驗證。

AddIdentityCookies(AuthenticationBuilder)

來源:
IdentityCookiesBuilderExtensions.cs
來源:
IdentityCookiesBuilderExtensions.cs
來源:
IdentityCookiesBuilderExtensions.cs

新增 Cookie 驗證。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^ AddIdentityCookies(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddIdentityCookies : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Identity.IdentityCookiesBuilder
<Extension()>
Public Function AddIdentityCookies (builder As AuthenticationBuilder) As IdentityCookiesBuilder

參數

builder
AuthenticationBuilder

目前的 AuthenticationBuilder 執行個體。

傳回

IdentityCookiesBuilder,可用來設定身分識別 Cookie。

適用於

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

來源:
IdentityCookiesBuilderExtensions.cs
來源:
IdentityCookiesBuilderExtensions.cs
來源:
IdentityCookiesBuilderExtensions.cs

新增登入管理員所需的 Cookie 驗證。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^ AddIdentityCookies(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder, Action<Microsoft::AspNetCore::Identity::IdentityCookiesBuilder ^> ^ configureCookies);
public static Microsoft.AspNetCore.Identity.IdentityCookiesBuilder AddIdentityCookies (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Identity.IdentityCookiesBuilder> configureCookies);
static member AddIdentityCookies : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Identity.IdentityCookiesBuilder> -> Microsoft.AspNetCore.Identity.IdentityCookiesBuilder
<Extension()>
Public Function AddIdentityCookies (builder As AuthenticationBuilder, configureCookies As Action(Of IdentityCookiesBuilder)) As IdentityCookiesBuilder

參數

builder
AuthenticationBuilder

目前的 AuthenticationBuilder 執行個體。

configureCookies
Action<IdentityCookiesBuilder>

用來設定 Cookie 的動作。

傳回

IdentityCookiesBuilder,可用來設定身分識別 Cookie。

適用於