共用方式為


CookiePolicyAppBuilderExtensions.UseCookiePolicy 方法

定義

多載

UseCookiePolicy(IApplicationBuilder)

CookiePolicyMiddleware 處理常式新增至指定的 IApplicationBuilder ,以啟用 Cookie 原則功能。

UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions)

CookiePolicyMiddleware 處理常式新增至指定的 IApplicationBuilder ,以啟用 Cookie 原則功能。

UseCookiePolicy(IApplicationBuilder)

來源:
CookiePolicyAppBuilderExtensions.cs
來源:
CookiePolicyAppBuilderExtensions.cs
來源:
CookiePolicyAppBuilderExtensions.cs

CookiePolicyMiddleware 處理常式新增至指定的 IApplicationBuilder ,以啟用 Cookie 原則功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookiePolicy(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookiePolicy (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseCookiePolicy : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseCookiePolicy (app As IApplicationBuilder) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

傳回

完成作業之後,這個執行個體的參考。

適用於

UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions)

來源:
CookiePolicyAppBuilderExtensions.cs
來源:
CookiePolicyAppBuilderExtensions.cs
來源:
CookiePolicyAppBuilderExtensions.cs

CookiePolicyMiddleware 處理常式新增至指定的 IApplicationBuilder ,以啟用 Cookie 原則功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookiePolicy(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::CookiePolicyOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookiePolicy (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.CookiePolicyOptions options);
static member UseCookiePolicy : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.CookiePolicyOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseCookiePolicy (app As IApplicationBuilder, options As CookiePolicyOptions) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder要加入處理常式的 。

options
CookiePolicyOptions

CookiePolicyOptions 指定處理常式的選項。

傳回

完成作業之後,這個執行個體的參考。

適用於