asp.net.ph

HttpApplicationState Class

System.Web Namespace


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

HttpApplicationState Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public AllKeys String [ Get ]
public Contents HttpApplicationState [ Get ]
public Count Int32 [ Get ]
public Item ( String name ) Object [ Get , Set ]
public Item ( Int32 index ) Object [ Get ]
public StaticObjects HttpStaticObjectsCollection [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Add ( String name , Object value ) Void
public Clear ( ) Void
public Get ( Int32 index ) Object
public Get ( String name ) Object
public GetKey ( Int32 index ) String
public Lock ( ) Void
public Remove ( String name ) Void
public RemoveAll ( ) Void
public RemoveAt ( Int32 index ) Void
public Set ( String name , Object value ) Void
public UnLock ( ) Void

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

Syntax


To set a property or call a method:

Application.propertyName = value;
Application.methodName ( arguments );
  C# VB

To return the value of a property or method:

Type var = Application.propertyName;
Type var = Application  [ key ];
Type var = Application.methodName ( arguments );
  C# VB

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph