Partager via


SessionMiddlewareExtensions.UseSession Méthode

Définition

Surcharges

UseSession(IApplicationBuilder)

Ajoute le SessionMiddleware pour activer automatiquement l’état de session pour l’application.

UseSession(IApplicationBuilder, SessionOptions)

Ajoute le SessionMiddleware pour activer automatiquement l’état de session pour l’application.

UseSession(IApplicationBuilder)

Source:
SessionMiddlewareExtensions.cs
Source:
SessionMiddlewareExtensions.cs
Source:
SessionMiddlewareExtensions.cs

Ajoute le SessionMiddleware pour activer automatiquement l’état de session pour l’application.

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

Paramètres

Retours

L’IApplicationBuilderopérateur

S’applique à

UseSession(IApplicationBuilder, SessionOptions)

Source:
SessionMiddlewareExtensions.cs
Source:
SessionMiddlewareExtensions.cs
Source:
SessionMiddlewareExtensions.cs

Ajoute le SessionMiddleware pour activer automatiquement l’état de session pour l’application.

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

Paramètres

options
SessionOptions

L’SessionOptionsopérateur

Retours

L’IApplicationBuilderopérateur

S’applique à