Manages an ASP.NET Web Forms XAF application.
public class WebApplication : XafApplication
Public Class WebApplication Inherits XafApplication
Related API Members
The following members accept/return WebApplication objects:
The WebApplication class is the platform-specific descendant of the XafApplication class. In an ASP.NET Web Forms 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 Web Forms application:
- ModuleBase.Application, etc.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the WebApplication class.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.