Sdílet prostřednictvím


SessionMiddlewareExtensions.UseSession Metoda

Definice

Přetížení

UseSession(IApplicationBuilder)

SessionMiddleware Přidá k automatickému povolení stavu relace pro aplikaci.

UseSession(IApplicationBuilder, SessionOptions)

SessionMiddleware Přidá k automatickému povolení stavu relace pro aplikaci.

UseSession(IApplicationBuilder)

Zdroj:
SessionMiddlewareExtensions.cs
Zdroj:
SessionMiddlewareExtensions.cs
Zdroj:
SessionMiddlewareExtensions.cs

SessionMiddleware Přidá k automatickému povolení stavu relace pro aplikaci.

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

Návraty

Hodnota IApplicationBuilder

Platí pro

UseSession(IApplicationBuilder, SessionOptions)

Zdroj:
SessionMiddlewareExtensions.cs
Zdroj:
SessionMiddlewareExtensions.cs
Zdroj:
SessionMiddlewareExtensions.cs

SessionMiddleware Přidá k automatickému povolení stavu relace pro aplikaci.

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

Hodnota SessionOptions

Návraty

Hodnota IApplicationBuilder

Platí pro