Bagikan melalui


SessionMiddlewareExtensions.UseSession Metode

Definisi

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)

Sumber:
SessionMiddlewareExtensions.cs
Sumber:
SessionMiddlewareExtensions.cs
Sumber:
SessionMiddlewareExtensions.cs

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

IApplicationBuilder.

Berlaku untuk

UseSession(IApplicationBuilder, SessionOptions)

Sumber:
SessionMiddlewareExtensions.cs
Sumber:
SessionMiddlewareExtensions.cs
Sumber:
SessionMiddlewareExtensions.cs

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

Mengembalikan

IApplicationBuilder.

Berlaku untuk