XML and ASP.NET
| only for RuBoard |
System.Web.HttpApplication
The System.Web.HttpApplication class accesses information for the current application. Table A.4 shows the properties of the HttpApplication class, Table A.5 shows its methods , and Table A.6 lists its events.
Table A.4. Properties of the System.Web.HttpApplication Class
| Property Name | Description |
|---|---|
| Application | Gets the HttpApplicationState (application intrinsic object) for the current request. |
| Context | Gets an HttpContext (context intrinsic control) instance object, allowing access to the context under which the web server processes requests . |
| Modules | Provides access to a collection of all HttpModules registered for the application. |
| Request | Gets the HttpRequest (request intrinsic object) instance object for the current request, allowing access to HTTP information such as POST and GET data. |
| Response | Gets the HttpResponse (response intrinsic object) instance object for the current request. |
| Server | Gets the HttpServerUtility (server intrinsic object) instance object for the current web request, providing utility functions for use in the current application. |
| Session | Gets the HttpSessionState (session intrinsic object) instance object for the current web request, which enables access to state persistence between stateless requests. |
Table A.5. Methods of the System.Web.Application Class
| Method Name | Description |
|---|---|
| CompleteRequest | Bypasses all other events in the pipeline and forces the request to terminate prematurely. |
| Dispose | Cleans up HttpModule object instances. |
| Init | Initializes IHttpModule object instances and executes custom initialization code. |
Table A.6. Events of the System.Web.Application Class
| Event Name | Occurs When |
|---|---|
| AuthenticateRequest | The user 's identity ( System.Security.IPrincipal ) is established. |
| AuthorizeRequest | The user is verified as authorized for the request. |
| BeginRequest | A new request is made. |
| EndRequest | A new request is completed. |
| Error | The application encounters an unhandled exception. |
| only for RuBoard |