CookiePolicyAppBuilderExtensions.UseCookiePolicy Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseCookiePolicy(IApplicationBuilder) |
CookiePolicyMiddleware Menambahkan handler ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan kebijakan cookie. |
UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions) |
CookiePolicyMiddleware Menambahkan handler ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan kebijakan cookie. |
UseCookiePolicy(IApplicationBuilder)
CookiePolicyMiddleware Menambahkan handler ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan kebijakan 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
Parameter
untuk IApplicationBuilder menambahkan handler.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.
Berlaku untuk
UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions)
CookiePolicyMiddleware Menambahkan handler ke yang ditentukan IApplicationBuilder, yang memungkinkan kemampuan kebijakan 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
Parameter
untuk IApplicationBuilder menambahkan handler.
- options
- CookiePolicyOptions
CookiePolicyOptions yang menentukan opsi untuk handler.
Mengembalikan
Referensi ke instans ini setelah operasi selesai.