Share via

SPHttpApplication class

Processes requests for Microsoft SharePoint Foundation pages, controls, Web services, and other resources that are associated with a particular SharePoint Foundation application on the Internet Information Server (IIS).

Inheritance hierarchy


Namespace:  Microsoft.SharePoint.ApplicationRuntime
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPHttpApplication _
    Inherits HttpApplication
Dim instance As SPHttpApplication
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class SPHttpApplication : HttpApplication


The SPHttpApplication class is declared in the Global.asax file at the root of the virtual directory for the SharePoint Foundation application.

Normally, SPHttpApplication objects are not created with application code. The first time a SharePoint Foundation page is requested, a SPHttpApplication object is automatically created by Microsoft ASP.NET through its handling of global.asax to process the request.

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.

See also


SPHttpApplication members

Microsoft.SharePoint.ApplicationRuntime namespace

Other resources

Global.asax Syntax