SessionMiddlewareExtensions.UseSession 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseSession(IApplicationBuilder) |
SessionMiddleware新增 以自動啟用應用程式的會話狀態。 |
UseSession(IApplicationBuilder, SessionOptions) |
SessionMiddleware新增 以自動啟用應用程式的會話狀態。 |
UseSession(IApplicationBuilder)
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
參數
傳回
適用於
UseSession(IApplicationBuilder, SessionOptions)
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
參數
- options
- SessionOptions