System.Web.HttpApplication Members

The members of System.Web.HttpApplication are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.HttpApplication class.

Public Properties

[read-only]
ApplicationHttpApplicationState.

Gets the current state of an application.

[read-only]
ContextHttpContext.

Gets HTTP-specific information about the current request.

[read-only]
ModulesHttpModuleCollection.

Gets the collection of modules for the current application.

[read-only]
RequestHttpRequest.

Gets the intrinsic request object for the current request.

[read-only]
ResponseHttpResponse.

Gets the intrinsic response object for the current request.

[read-only]
ServerHttpServerUtility.

Gets the intrinsic server object for the current request.

[read-only]
SessionSystem.Web.SessionState.HttpSessionState.

Gets the intrinsic session object that provides access to session data.

SiteSystem.ComponentModel.ISite.

Gets or sets a site interface for an System.ComponentModel.IComponent implementation.

[read-only]
UserSystem.Security.Principal.IPrincipal.

Gets the intrinsic user object for the current request.

Protected Properties

[read-only]
EventsSystem.ComponentModel.EventHandlerList.

Gets the list of event handler delegates that process all application events.

Public Methods

AddOnAcquireRequestStateAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.AcquireRequestState event to the collection of asynchronous HttpApplication.AcquireRequestState event handlers for the current request.

AddOnAcquireRequestStateAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.AcquireRequestState event to the collection of asynchronous HttpApplication.AcquireRequestState event handlers for the current request.

AddOnAuthenticateRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.AuthenticateRequest event to the collection of asynchronous HttpApplication.AuthenticateRequest event handlers for the current request.

AddOnAuthenticateRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.AuthenticateRequest event to the collection of asynchronous HttpApplication.AuthenticateRequest event handlers for the current request.

AddOnAuthorizeRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.AuthorizeRequest event to the collection of asynchronous HttpApplication.AuthorizeRequest event handlers for the current request.

AddOnAuthorizeRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.AuthorizeRequest event to the collection of asynchronous HttpApplication.AuthorizeRequest event handlers for the current request.

AddOnBeginRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.BeginRequest event to the collection of asynchronous HttpApplication.BeginRequest event handlers for the current request.

AddOnBeginRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.BeginRequest event to the collection of asynchronous HttpApplication.BeginRequest event handlers for the current request.

AddOnEndRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.EndRequest event to the collection of asynchronous HttpApplication.EndRequest event handlers for the current request.

AddOnEndRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.EndRequest event to the collection of asynchronous HttpApplication.EndRequest event handlers for the current request.

AddOnLogRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.LogRequest event to the collection of asynchronous HttpApplication.LogRequest event handlers for the current request.

AddOnLogRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.LogRequest event to the collection of asynchronous HttpApplication.LogRequest event handlers for the current request.

AddOnMapRequestHandlerAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.MapRequestHandler event to the collection of asynchronous HttpApplication.MapRequestHandler event handlers for the current request.

AddOnMapRequestHandlerAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.MapRequestHandler event to the collection of asynchronous HttpApplication.MapRequestHandler event handlers for the current request.

AddOnPostAcquireRequestStateAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostAcquireRequestState event to the collection of asynchronous HttpApplication.PostAcquireRequestState event handlers for the current request.

AddOnPostAcquireRequestStateAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostAcquireRequestState event to the collection of asynchronous HttpApplication.PostAcquireRequestState event handlers for the current request.

AddOnPostAuthenticateRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostAuthenticateRequest event to the collection of asynchronous HttpApplication.PostAuthenticateRequest event handlers for the current request.

AddOnPostAuthenticateRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostAuthorizeRequest event to the collection of asynchronous HttpApplication.PostAuthorizeRequest event handlers for the current request.

AddOnPostAuthorizeRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostAuthorizeRequest event to the collection of asynchronous HttpApplication.PostAuthorizeRequest event handlers for the current request.

AddOnPostAuthorizeRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostAuthorizeRequest to the collection of asynchronous HttpApplication.PostAuthorizeRequest event handlers for the current request.

AddOnPostLogRequestAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostLogRequest event to the collection of asynchronous HttpApplication.PostLogRequest event handlers for the current request.

AddOnPostLogRequestAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostLogRequest event to the collection of asynchronous HttpApplication.PostLogRequest event handlers for the current request.

AddOnPostMapRequestHandlerAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostMapRequestHandler event to the collection of asynchronous HttpApplication.PostMapRequestHandler event handlers for the current request.

AddOnPostMapRequestHandlerAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostMapRequestHandler event to the collection of asynchronous HttpApplication.PostMapRequestHandler event handlers for the current request.

AddOnPostReleaseRequestStateAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostReleaseRequestState event to the collection of asynchronous HttpApplication.PostReleaseRequestState event handlers for the current request.

AddOnPostReleaseRequestStateAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostReleaseRequestState event to the collection of asynchronous HttpApplication.PostReleaseRequestState event handlers for the current request.

AddOnPostRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostRequestHandlerExecute event to the collection of asynchronous HttpApplication.PostRequestHandlerExecute event handlers for the current request.

AddOnPostRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostRequestHandlerExecute event to the collection of asynchronous HttpApplication.PostRequestHandlerExecute event handlers for the current request.

AddOnPostResolveRequestCacheAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostResolveRequestCache event to the collection of asynchronous HttpApplication.PostResolveRequestCache event handlers for the current request.

AddOnPostResolveRequestCacheAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostResolveRequestCache event to the collection of asynchronous HttpApplication.PostResolveRequestCache event handlers for the current request.

AddOnPostUpdateRequestCacheAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PostUpdateRequestCache event to the collection of asynchronous HttpApplication.PostUpdateRequestCache event handlers for the current request.

AddOnPostUpdateRequestCacheAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PostUpdateRequestCache event to the collection of asynchronous HttpApplication.PostUpdateRequestCache event handlers for the current request.

AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.PreRequestHandlerExecute event to the collection of asynchronous HttpApplication.PreRequestHandlerExecute event handlers for the current request.

AddOnPreRequestHandlerExecuteAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.PreRequestHandlerExecute event to the collection of asynchronous HttpApplication.PreRequestHandlerExecute event handlers for the current request.

AddOnReleaseRequestStateAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.ReleaseRequestState event to the collection of asynchronous HttpApplication.ReleaseRequestState event handlers for the current request.

AddOnReleaseRequestStateAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.ReleaseRequestState event to the collection of asynchronous HttpApplication.ReleaseRequestState event handlers for the current request.

AddOnResolveRequestCacheAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.ResolveRequestCache event handler to the collection of asynchronous HttpApplication.ResolveRequestCache event handlers for the current request.

AddOnResolveRequestCacheAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.ResolveRequestCache event handler to the collection of asynchronous HttpApplication.ResolveRequestCache event handlers for the current request.

AddOnUpdateRequestCacheAsync(BeginEventHandler, EndEventHandler)

Adds the specified HttpApplication.UpdateRequestCache event to the collection of asynchronous HttpApplication.UpdateRequestCache event handlers for the current request.

AddOnUpdateRequestCacheAsync(BeginEventHandler, EndEventHandler, object)

Adds the specified HttpApplication.UpdateRequestCache event to the collection of asynchronous HttpApplication.UpdateRequestCache event handlers for the current request.

CompleteRequest()

Causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the HttpApplication.EndRequest event.

Dispose()

Disposes the System.Web.HttpApplication instance.

GetVaryByCustomString(HttpContext, string) : string

Provides an application-wide implementation of the System.Web.UI.PartialCachingAttribute.VaryByCustom property.

Init()

Executes custom initialization code after all event handler modules have been added.

Public Events

AcquireRequestState

Occurs when ASP.NET acquires the current state (for example, session state) that is associated with the current request.

AuthenticateRequest

Occurs when a security module has established the identity of the user.

AuthorizeRequest

Occurs when a security module has verified user authorization.

BeginRequest

Occurs as the first event in the HTTP pipeline chain of execution when ASP.NET responds to a request.

Disposed

Occurs when the application is disposed.

EndRequest

Occurs as the last event in the HTTP pipeline chain of execution when ASP.NET responds to a request.

Error

Occurs when an unhandled exception is thrown.

LogRequest

Occurs just before ASP.NET performs any logging for the current request.

MapRequestHandler

Occurs when the handler is selected to respond to the request.

PostAcquireRequestState

Occurs when the request state (for example, session state) that is associated with the current request has been obtained.

PostAuthenticateRequest

Occurs when a security module has established the identity of the user.

PostAuthorizeRequest

Occurs when the user for the current request has been authorized.

PostLogRequest

Occurs when ASP.NET has completed processing all the event handlers for the HttpApplication.LogRequest event.

PostMapRequestHandler

Occurs when ASP.NET has mapped the current request to the appropriate event handler.

PostReleaseRequestState

Occurs when ASP.NET has completed executing all request event handlers and the request state data has been stored.

PostRequestHandlerExecute

Occurs when the ASP.NET event handler (for example, a page or an XML Web service) finishes execution.

PostResolveRequestCache

Occurs when ASP.NET bypasses execution of the current event handler and allows a caching module to serve a request from the cache.

PostUpdateRequestCache

Occurs when ASP.NET finishes updating caching modules and storing responses that are used to serve subsequent requests from the cache.

PreRequestHandlerExecute

Occurs just before ASP.NET starts executing an event handler (for example, a page or an XML Web service).

PreSendRequestContent

Occurs just before ASP.NET sends content to the client.

PreSendRequestHeaders

Occurs just before ASP.NET sends HTTP headers to the client.

ReleaseRequestState

Occurs after ASP.NET finishes executing all request event handlers. This event causes state modules to save the current state data.

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).

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.

Explicitly Implemented Interface Members

System.Web.IHttpAsyncHandler.BeginProcessRequest

Initiates an asynchronous call to the HTTP event handler.

System.Web.IHttpAsyncHandler.EndProcessRequest

Provides an asynchronous process End method when the process finishes.

[read-only]
System.Web.IHttpHandler.IsReusablebool.

Gets a Boolean value indicating whether another request can use the System.Web.IHttpHandler object.

System.Web.IHttpHandler.ProcessRequest

Enables processing of HTTP Web requests by a custom HTTP handler that implements the System.Web.IHttpHandler interface.