SessionMiddlewareExtensions.UseSession Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
UseSession(IApplicationBuilder) |
SessionMiddleware Menambahkan untuk mengaktifkan status sesi secara otomatis untuk aplikasi. |
UseSession(IApplicationBuilder, SessionOptions) |
SessionMiddleware Menambahkan untuk mengaktifkan status sesi secara otomatis untuk aplikasi. |
UseSession(IApplicationBuilder)
SessionMiddleware Menambahkan untuk mengaktifkan status sesi secara otomatis untuk aplikasi.
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
Parameter
Mengembalikan
Berlaku untuk
UseSession(IApplicationBuilder, SessionOptions)
SessionMiddleware Menambahkan untuk mengaktifkan status sesi secara otomatis untuk aplikasi.
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
Parameter
- options
- SessionOptions