IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddIdentityCookies(AuthenticationBuilder) |
添加 Cookie 身份验证。 |
AddIdentityCookies(AuthenticationBuilder, Action<IdentityCookiesBuilder>) |
添加登录管理器所需的 Cookie 身份验证。 |
AddIdentityCookies(AuthenticationBuilder)
添加 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>)
添加登录管理器所需的 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 的 。