This documentation is archived and is not being maintained.

HttpApplicationState Members

HttpApplicationState overview

Public Properties

public propertyAllKeys Gets the access keys in the HttpApplicationState collection.
public propertyContents Gets a reference to the HttpApplicationState object.
public propertyCount Overridden. Gets the number of objects in the HttpApplicationState collection.
public propertyItem Overloaded. Gets access to an object in an HttpApplicationState collection. This property is overloaded to allow access to an object by name or numerical index.

In C#, this property is the indexer for the HttpApplicationState class.

public propertyKeys (inherited from NameObjectCollectionBase) Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.
public propertyStaticObjects Gets all objects declared by an <object> tag where the scope is set to "Application" within the ASP.NET application.

Public Methods

public methodAdd Adds a new object to the HttpApplicationState collection.
public methodClear Removes all objects from an HttpApplicationState collection.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGet Overloaded. Gets an HttpApplicationState object by name or index.
public methodGetEnumerator (inherited from NameObjectCollectionBase) Returns an enumerator that can iterate through the NameObjectCollectionBase.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetKey Gets an HttpApplicationState object name by index.
public methodGetObjectData (inherited from NameObjectCollectionBase) Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodLock Locks access to an HttpApplicationState variable to facilitate access synchronization.
public methodOnDeserialization (inherited from NameObjectCollectionBase) Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
public methodRemove Removes the named object from an HttpApplicationState collection.
public methodRemoveAll Removes all objects from an HttpApplicationState collection.
public methodRemoveAt Removes an object from an HttpApplicationState collection by index.
public methodSet Updates the value of an object in an HttpApplicationState collection.
public methodToString (inherited from Object) Returns a String that represents the current Object.
public methodUnLock Unlocks access to an HttpApplicationState variable to facilitate access synchronization.

Protected Properties

protected propertyIsReadOnly (inherited from NameObjectCollectionBase) Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

Protected Methods

protected methodBaseAdd (inherited from NameObjectCollectionBase) Adds an entry with the specified key and value into the NameObjectCollectionBase instance.
protected methodBaseClear (inherited from NameObjectCollectionBase) Removes all entries from the NameObjectCollectionBase instance.
protected methodBaseGet (inherited from NameObjectCollectionBase) Overloaded. Gets the value of the specified entry from the NameObjectCollectionBase instance.
protected methodBaseGetAllKeys (inherited from NameObjectCollectionBase) Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
protected methodBaseGetAllValues (inherited from NameObjectCollectionBase) Overloaded. Returns an array that contains all the values in the NameObjectCollectionBase instance.
protected methodBaseGetKey (inherited from NameObjectCollectionBase) Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseHasKeys (inherited from NameObjectCollectionBase) Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not a null reference (Nothing in Visual Basic).
protected methodBaseRemove (inherited from NameObjectCollectionBase) Removes the entries with the specified key from the NameObjectCollectionBase instance.
protected methodBaseRemoveAt (inherited from NameObjectCollectionBase) Removes the entry at the specified index of the NameObjectCollectionBase instance.
protected methodBaseSet (inherited from NameObjectCollectionBase) Overloaded. Sets the value of an entry in the NameObjectCollectionBase instance.
protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

HttpApplicationState Class | System.Web Namespace

Show: