HttpApplicationState Class
TOC
Collapse the table of content
Expand the table of content

HttpApplicationState Class

 

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

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


Public NotInheritable Class HttpApplicationState
	Inherits NameObjectCollectionBase

NameDescription
System_CAPS_pubpropertyAllKeys

Gets the access keys in the HttpApplicationState collection.

System_CAPS_pubpropertyContents

Gets a reference to the HttpApplicationState object.

System_CAPS_pubpropertyCount

Gets the number of objects in the HttpApplicationState collection.(Overrides NameObjectCollectionBase.Count.)

System_CAPS_pubpropertyItem(Int32)

Gets a single HttpApplicationState object by index.

System_CAPS_pubpropertyItem(String)

Gets the value of a single HttpApplicationState object by name.

System_CAPS_pubpropertyKeys

Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.(Inherited from NameObjectCollectionBase.)

System_CAPS_pubpropertyStaticObjects

Gets all objects declared by an <object> tag where the scope is set to "Application" within the ASP.NET application.

NameDescription
System_CAPS_pubmethodAdd(String, Object)

Adds a new object to the HttpApplicationState collection.

System_CAPS_pubmethodClear()

Removes all objects from an HttpApplicationState collection.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGet(Int32)

Gets an HttpApplicationState object by numerical index.

System_CAPS_pubmethodGet(String)

Gets an HttpApplicationState object by name.

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the NameObjectCollectionBase.(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetKey(Int32)

Gets an HttpApplicationState object name by index.

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLock()

Locks access to an HttpApplicationState variable to facilitate access synchronization.

System_CAPS_pubmethodOnDeserialization(Object)

Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethodRemove(String)

Removes the named object from an HttpApplicationState collection.

System_CAPS_pubmethodRemoveAll()

Removes all objects from an HttpApplicationState collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes an HttpApplicationState object from a collection by index.

System_CAPS_pubmethodSet(String, Object)

Updates the value of an object in an HttpApplicationState collection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodUnLock()

Unlocks access to an HttpApplicationState variable to facilitate access synchronization.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.(Inherited from NameObjectCollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.IsSynchronized

Gets a value indicating whether access to the NameObjectCollectionBase object is synchronized (thread safe).(Inherited from NameObjectCollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyICollection.SyncRoot

Gets an object that can be used to synchronize access to the NameObjectCollectionBase object.(Inherited from NameObjectCollectionBase.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast(Of TResult)()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType(Of TResult)()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

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

.NET Framework
Available since 1.1

This type is thread safe.

Return to top
Show:
© 2016 Microsoft