Export (0) Print
Expand All

HttpApplication Members

Defines the methods, properties, and events that are common to all application objects in an ASP.NET application. This class is the base class for applications that are defined by the user in the Global.asax file.

The HttpApplication type exposes the following members.

  NameDescription
Public method HttpApplication Initializes a new instance of the HttpApplication class.
Top

  NameDescription
Public method AddOnAcquireRequestStateAsync Overloaded. Adds the specified AcquireRequestState event to the collection of asynchronous AcquireRequestState event handlers for the current request.
Public method AddOnAuthenticateRequestAsync Overloaded. Adds the specified AuthenticateRequest event to the collection of asynchronous AuthenticateRequest event handlers for the current request.
Public method AddOnAuthorizeRequestAsync Overloaded. Adds the specified AuthorizeRequest event to the collection of asynchronous AuthorizeRequest event handlers for the current request.
Public method AddOnBeginRequestAsync Overloaded. Adds the specified BeginRequest event to the collection of asynchronous BeginRequest event handlers for the current request.
Public method AddOnEndRequestAsync Overloaded. Adds the specified EndRequest event to the collection of asynchronous EndRequest event handlers for the current request.
Public method AddOnLogRequestAsync Overloaded. Adds the specified LogRequest event to the collection of asynchronous LogRequest event handlers for the current request.
Public method AddOnMapRequestHandlerAsync Overloaded. Adds the specified MapRequestHandler event to the collection of asynchronous MapRequestHandler event handlers for the current request.
Public method AddOnPostAcquireRequestStateAsync Overloaded. Adds the specified PostAcquireRequestState event to the collection of asynchronous PostAcquireRequestState event handlers for the current request.
Public method AddOnPostAuthenticateRequestAsync Overloaded. Adds the specified AddOnPostAcquireRequestStateAsync event to the collection of asynchronous PostAuthenticateRequest event handlers for the current request.
Public method AddOnPostAuthorizeRequestAsync Overloaded. Adds the specified PostAuthorizeRequest event to the collection of asynchronous PostAuthorizeRequest event handlers for the current request.
Public method AddOnPostLogRequestAsync Overloaded. Adds the specified PostLogRequest event to the collection of asynchronous PostLogRequest event handlers for the current request.
Public method AddOnPostMapRequestHandlerAsync Overloaded. Adds the specified PostMapRequestHandler event to the collection of asynchronous PostMapRequestHandler event handlers for the current request.
Public method AddOnPostReleaseRequestStateAsync Overloaded. Adds the specified PostReleaseRequestState event to the collection of asynchronous PostReleaseRequestState event handlers for the current request.
Public method AddOnPostRequestHandlerExecuteAsync Overloaded. Adds the specified PostRequestHandlerExecute event to the collection of asynchronous PostRequestHandlerExecute event handlers for the current request.
Public method AddOnPostResolveRequestCacheAsync Overloaded. Adds the specified PostResolveRequestCache event to the collection of asynchronous PostResolveRequestCache event handlers for the current request.
Public method AddOnPostUpdateRequestCacheAsync Overloaded. Adds the specified PostUpdateRequestCache event to the collection of asynchronous PostUpdateRequestCache event handlers for the current request.
Public method AddOnPreRequestHandlerExecuteAsync Overloaded. Adds the specified PreRequestHandlerExecute event to the collection of asynchronous PreRequestHandlerExecute event handlers for the current request.
Public method AddOnReleaseRequestStateAsync Overloaded. Adds the specified ReleaseRequestState event to the collection of asynchronous ReleaseRequestState event handlers for the current request.
Public method AddOnResolveRequestCacheAsync Overloaded. Adds the specified ResolveRequestCache event handler to the collection of asynchronous ResolveRequestCache event handlers for the current request.
Public method AddOnUpdateRequestCacheAsync Overloaded. Adds the specified UpdateRequestCache event to the collection of asynchronous UpdateRequestCache event handlers for the current request.
Public method CompleteRequest Causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the EndRequest event.
Public method Dispose Disposes the HttpApplication instance.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method GetVaryByCustomString Provides an application-wide implementation of the VaryByCustom property.
Public method Init Executes custom initialization code after all event handler modules have been added.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property Application Gets the current state of an application.
Public property Context Gets HTTP-specific information about the current request.
Protected property Events Gets the list of event handler delegates that process all application events.
Public property Modules Gets the collection of modules for the current application.
Public property Request Gets the intrinsic request object for the current request.
Public property Response Gets the intrinsic response object for the current request.
Public property Server Gets the intrinsic server object for the current request.
Public property Session Gets the intrinsic session object that provides access to session data.
Public property Site Gets or sets a site interface for an IComponent implementation.
Public property User Gets the intrinsic user object for the current request.
Top

  NameDescription
Public event AcquireRequestState Occurs when ASP.NET acquires the current state (for example, session state) that is associated with the current request.
Public event AuthenticateRequest Occurs when a security module has established the identity of the user.
Public event AuthorizeRequest Occurs when a security module has verified user authorization.
Public event BeginRequest Occurs as the first event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
Public event Disposed Occurs when the application is disposed.
Public event EndRequest Occurs as the last event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
Public event Error Occurs when an unhandled exception is thrown.
Public event LogRequest Occurs just before ASP.NET performs any logging for the current request.
Public event MapRequestHandler Infrastructure. Occurs when the handler is selected to respond to the request.
Public event PostAcquireRequestState Occurs when the request state (for example, session state) that is associated with the current request has been obtained.
Public event PostAuthenticateRequest Occurs when a security module has established the identity of the user.
Public event PostAuthorizeRequest Occurs when the user for the current request has been authorized.
Public event PostLogRequest Occurs when ASP.NET has completed processing all the event handlers for the LogRequest event.
Public event PostMapRequestHandler Occurs when ASP.NET has mapped the current request to the appropriate event handler.
Public event PostReleaseRequestState Occurs when ASP.NET has completed executing all request event handlers and the request state data has been stored.
Public event PostRequestHandlerExecute Occurs when the ASP.NET event handler (for example, a page or an XML Web service) finishes execution.
Public event PostResolveRequestCache Occurs when ASP.NET bypasses execution of the current event handler and allows a caching module to serve a request from the cache.
Public event PostUpdateRequestCache Occurs when ASP.NET finishes updating caching modules and storing responses that are used to serve subsequent requests from the cache.
Public event PreRequestHandlerExecute Occurs just before ASP.NET starts executing an event handler (for example, a page or an XML Web service).
Public event PreSendRequestContent Occurs just before ASP.NET sends content to the client.
Public event PreSendRequestHeaders Occurs just before ASP.NET sends HTTP headers to the client.
Public event ReleaseRequestState Occurs after ASP.NET finishes executing all request event handlers. This event causes state modules to save the current state data.
Public event ResolveRequestCache Occurs when ASP.NET finishes an authorization event to let the caching modules serve requests from the cache, bypassing execution of the event handler (for example, a page or an XML Web service).
Public event UpdateRequestCache Occurs when ASP.NET finishes executing an event handler in order to let caching modules store responses that will be used to serve subsequent requests from the cache.
Top

  NameDescription
Explicit interface implemetation Private method IHttpAsyncHandler.BeginProcessRequest Initiates an asynchronous call to the HTTP event handler.
Explicit interface implemetation Private method IHttpAsyncHandler.EndProcessRequest Provides an asynchronous process End method when the process finishes.
Explicit interface implemetation Private property IHttpHandler.IsReusable Gets a Boolean value indicating whether another request can use the IHttpHandler object.
Explicit interface implemetation Private method IHttpHandler.ProcessRequest Enables processing of HTTP Web requests by a custom HTTP handler that implements the IHttpHandler interface.
Top

Community Additions

ADD
Show:
© 2014 Microsoft