IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies 方法

定义

重载

AddIdentityCookies(AuthenticationBuilder)

添加 Cookie 身份验证。

AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>)

添加登录管理器所需的 Cookie 身份验证。

AddIdentityCookies(AuthenticationBuilder)

Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs
Source:
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>)

Source:
IdentityCookiesBuilderExtensions.cs
Source:
IdentityCookiesBuilderExtensions.cs
Source:
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 的 。

适用于