WebApplication.SetInstance(HttpSessionState, WebApplication) Method

Assigns the WebApplication instance to the SessionApplicationVariable Session variable.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v18.2.dll

Declaration

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

Parameters

Type Name Description
HttpSessionState session

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

WebApplication application

A WebApplication instance.

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