This documentation is archived and is not being maintained.

HttpApplicationStateBase::StaticObjects Property

When overridden in a derived class, gets all objects that are declared by an object element where the scope is set to "Application" in the ASP.NET application.

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

public:
virtual property HttpStaticObjectsCollectionBase^ StaticObjects {
	HttpStaticObjectsCollectionBase^ get ();
}

Property Value

Type: System.Web::HttpStaticObjectsCollectionBase
A collection of objects in the application.

ExceptionCondition
NotImplementedException

Always.

Application objects are defined in the Global.asax file inside an element with syntax like the following:

<object runat="server" scope="Application">Object information</object>

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1
Show: