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
System.Object
System.Web.HttpApplication
Microsoft.SharePoint.ApplicationRuntime.SPHttpApplication
Namespace: Microsoft.SharePoint.ApplicationRuntime
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPHttpApplication _
Inherits HttpApplication
'Usage
Dim instance As SPHttpApplication
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class SPHttpApplication : HttpApplication
Remarks
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
Reference
Microsoft.SharePoint.ApplicationRuntime Namespace