共用方式為


SessionMiddlewareExtensions.UseSession 方法

定義

多載

UseSession(IApplicationBuilder)

SessionMiddleware新增 以自動啟用應用程式的會話狀態。

UseSession(IApplicationBuilder, SessionOptions)

SessionMiddleware新增 以自動啟用應用程式的會話狀態。

UseSession(IApplicationBuilder)

來源:
SessionMiddlewareExtensions.cs
來源:
SessionMiddlewareExtensions.cs
來源:
SessionMiddlewareExtensions.cs

SessionMiddleware新增 以自動啟用應用程式的會話狀態。

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

參數

傳回

IApplicationBuilder

適用於

UseSession(IApplicationBuilder, SessionOptions)

來源:
SessionMiddlewareExtensions.cs
來源:
SessionMiddlewareExtensions.cs
來源:
SessionMiddlewareExtensions.cs

SessionMiddleware新增 以自動啟用應用程式的會話狀態。

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

參數

傳回

IApplicationBuilder

適用於