System.Web.HttpApplicationState

only for RuBoard

System.Web.HttpApplicationState

The System.Web.HttpApplicationState class (or application intrinsic object) enables access to persisted state information across user context boundaries but within a single application context boundary. Each application on the web server creates an instance of the HttpApplicationState class. Table A.7 shows the properties of the HttpApplicationState class, and Table A.8 shows its methods .

Table A.7. Properties of the System.Web.HttpApplicationState Class

Property Name

Description

AllKeys

Exposes the keys in the HttpApplicationState collection.

Contents

Provides reference to the HttpApplicationState collection object.

Count

Gets the number of objects in the HttpApplicationState collection.

Item

Provides access to an item in the HttpApplicationState collection object by name or index.

Keys

Returns a collection of keys for the HttpApplicationState collection.

StaticObjects

Returns objects declared in the global.asax file by the following tag:

 

<object runat="server" scope="application">

Table A.8. Methods of the System.Web.HttpApplicationState Class

Method Name

Description

Add

Adds an object to the HttpApplicationState collection.

Clear

Removes all objects from the HttpApplicationState collection.

Get

Gets an object from the HttpApplicationState collection by index or name.

Lock

Locks access to the HttpApplicationState variable to enable synchronization.

Remove

Removes a specific item from the HttpApplicationState collection.

RemoveAll

Removes all objects from the HttpApplicationState collection.

RemoveAt

Removes an object from the HttpApplicationState collection by index.

Set

Updates the value of an object in the HttpApplicationState collection.

UnLock

Unlocks access to the HttpApplicationState variable to enable synchronization.

only for RuBoard


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net