HttpContext Class

HttpContext Class

Encapsulates all HTTP-specific information about an individual HTTP request.

For a list of all members of this type, see HttpContext Members.


[Visual Basic]
NotInheritable Public Class HttpContext
   Implements IServiceProvider
public sealed class HttpContext : IServiceProvider
public __gc __sealed class HttpContext : public IServiceProvider
public class HttpContext implements IServiceProvider

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Classes that inherit the IHttpModule and IHttpHandler interfaces are provided a reference to an HttpContext object for the current HTTP request. The object provides access to the intrinsic Request, Response, and Server objects for the request.


Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

HttpContext Members | System.Web Namespace

© 2015 Microsoft