Udostępnij za pośrednictwem


SessionMiddlewareExtensions.UseSession Metoda

Definicja

Przeciążenia

UseSession(IApplicationBuilder)

Dodaje element , SessionMiddleware aby automatycznie włączyć stan sesji dla aplikacji.

UseSession(IApplicationBuilder, SessionOptions)

Dodaje element , SessionMiddleware aby automatycznie włączyć stan sesji dla aplikacji.

UseSession(IApplicationBuilder)

Źródło:
SessionMiddlewareExtensions.cs
Źródło:
SessionMiddlewareExtensions.cs
Źródło:
SessionMiddlewareExtensions.cs

Dodaje element , SessionMiddleware aby automatycznie włączyć stan sesji dla aplikacji.

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

Parametry

Zwraca

Element IApplicationBuilder.

Dotyczy

UseSession(IApplicationBuilder, SessionOptions)

Źródło:
SessionMiddlewareExtensions.cs
Źródło:
SessionMiddlewareExtensions.cs
Źródło:
SessionMiddlewareExtensions.cs

Dodaje element , SessionMiddleware aby automatycznie włączyć stan sesji dla aplikacji.

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

Parametry

options
SessionOptions

Element SessionOptions.

Zwraca

Element IApplicationBuilder.

Dotyczy