Bagikan melalui


CookiePolicyAppBuilderExtensions.UseCookiePolicy Metode

Definisi

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)

Sumber:
CookiePolicyAppBuilderExtensions.cs
Sumber:
CookiePolicyAppBuilderExtensions.cs
Sumber:
CookiePolicyAppBuilderExtensions.cs

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

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan handler.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk

UseCookiePolicy(IApplicationBuilder, CookiePolicyOptions)

Sumber:
CookiePolicyAppBuilderExtensions.cs
Sumber:
CookiePolicyAppBuilderExtensions.cs
Sumber:
CookiePolicyAppBuilderExtensions.cs

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

app
IApplicationBuilder

untuk IApplicationBuilder menambahkan handler.

options
CookiePolicyOptions

CookiePolicyOptions yang menentukan opsi untuk handler.

Mengembalikan

Referensi ke instans ini setelah operasi selesai.

Berlaku untuk