The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.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 Class

Manages an ASP.NET XAF application.

Namespace: DevExpress.ExpressApp.Web

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

Declaration

public class WebApplication :
    XafApplication
Public Class WebApplication
    Inherits XafApplication

Remarks

The WebApplication class is the platform-specific descendant of the XafApplication class. In an ASP.NET application project, this class is inherited (see WebApplication.cs or WebApplication.vb file). The descendant is instantiated in the Global.Session_Start method (see Global.asax.cs or Global.asax.vb file). You can access the class' members to perform customizations before the XafApplication.Setup and WebApplication.Start methods are invoked. The current WebApplication instance is accessible via the static WebApplication.Instance property.

Since the WebApplication object can be useful at many points in your code, it must be easily accessed. The following properties, cast to the WebApplication type, provide access to the current ASP.NET application: ActionBase.Application, Controller.Application, Frame.Application, CustomizePopupWindowParamsEventArgs.Application, CreateCustomTemplateEventArgs.Application, ModuleBase.Application, etc.

Inheritance

See Also