StaticObjects Property

HttpSessionState.StaticObjects Property

Gets a collection of objects declared by <object Runat="Server" Scope="Session"/> tags within the ASP.NET application file global.asax.

[Visual Basic]
Public ReadOnly Property StaticObjects As _
public HttpStaticObjectsCollection StaticObjects {get;}
public: __property HttpStaticObjectsCollection* get_StaticObjects();
public function get StaticObjects() : HttpStaticObjectsCollection;

Property Value

An HttpStaticObjectsCollection containing objects declared in the global.asax file.


If the object does not support serialization and if Mode is out-of-process (SQLServer or StateServer), the object will not be created and will not be added to this collection.

StaticObjects is provided for compatibility with earlier versions of ASP.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpSessionState Class | HttpSessionState Members | System.Web.SessionState Namespace

© 2016 Microsoft