NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpApplicationState Class

The HttpApplicationState class enables developers to share state across multiple requests/sessions/pipelines within an ASP+ application.

Object
   NameObjectCollectionBase
      HttpApplicationState

[Visual Basic]
Public Class HttpApplicationState
   Inherits NameObjectCollectionBase
[C#]
public class HttpApplicationState : NameObjectCollectionBase
[C++]
public __gc class HttpApplicationState : public
   NameObjectCollectionBase
[JScript]
public class HttpApplicationState extends NameObjectCollectionBase

Remarks

A single instance of an HttpApplicationState class is created the first time a client requests any URL resource from within a particular ASP+ application virtual directory namespace. A separate, single, instance is created for each ASP+ application on the machine. A reference to this instance is then exposed via the "Application" property on the HttpContext object provided to all IHttpModules and IHttpHandlers during a given web request.

Application state is not shared across either a web-farm (when an application is hosted across multiple machines) or a web-garden (when an application is hosted across multiple processes on the same machine).

Requirements

Namespace: System.Web

Assembly: System.Web.dll

See Also

HttpApplicationState Members | System.Web Namespace