.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

WebApplication.SetInstance(HttpSessionState, WebApplication) Method

Assigns the WebApplication instance to the SessionApplicationVariable Session variable.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v20.1.dll

Declaration

public static void SetInstance(
    HttpSessionState session,
    WebApplication application
)
Public Shared Sub SetInstance(
    session As HttpSessionState,
    application As WebApplication
)

Parameters

Name Type Description
session HttpSessionState

A HttpSessionState object, which provides access to session-state values, session-level settings and lifetime management methods.

application WebApplication

A WebApplication instance.

Remarks

This method is used in the Session_Start method (see Global.asax.cs or Global.asax.vb in the ASP.NET application project).

See Also