
HttpContext | 493
System.Web
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
HttpCompileException
System.Web (system.web.dll)
sealed class
This class represents an HTTP compiler exception.
Hierarchy
System.Object ➝ System.Exception(System.Runtime.Serialization.ISerializable) ➝ System.
SystemException
➝ System.Runtime.InteropServices.ExternalException ➝ HttpException
➝ HttpCompileException
HttpContext
System.Web (system.web.dll)
sealed class
The HttpContext class represents the “operating context” of an ASP.NET application. It
provides references to instances of fundamental classes like HttpApplicationState and HttpRe-
quest, which are known as intrinsic or “built-in” objects. The HttpContext class is provided
to IHttpModule and IHttpHandler instances (like System.Web.UI.Page and HttpApplication), which
provide these classes through their own properties. The shared (static) property Current
returns the current HttpContext, and is useful if you need to access the built-in ASP.NET
objects from another code module like a class (where you won’t have access to the
System.Web.UI.Page properties). One example is a web service that doesn’t inherit from
System.Web.Services.WebService. You can also use the shared GetAppConfig( ) method to retrieve
a collection object from the web.config file that contains configuration information.
Just