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。