Export (0) Print
Expand All

HttpApplicationState Class

Enables sharing of global information across multiple sessions and requests within an ASP.NET application.

For a list of all members of this type, see HttpApplicationState Members.

System.Object
   System.Collections.Specialized.NameObjectCollectionBase
      System.Web.HttpApplicationState

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

Thread Safety

This type is safe for multithreaded operations.

Remarks

An ASP.NET application is the sum of all files, pages, handlers, modules, and code within the scope of a virtual directory and its subdirectories on a single Web server.

A single instance of an HttpApplicationState class is created the first time a client requests any URL resource from within a particular ASP.NET application virtual directory. A separate single instance is created for each ASP.NET application on a Web server. A reference to each instance is then exposed via the intrinsic Application object.

Application state is not shared across either a Web farm (in which an application is hosted across multiple servers) or a Web garden (in which an application is hosted across multiple processes on the same computer).

Requirements

Namespace: System.Web

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

HttpApplicationState Members | System.Web Namespace

Show:
© 2014 Microsoft