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 _
   HttpStaticObjectsCollection
[C#]
public HttpStaticObjectsCollection StaticObjects {get;}
[C++]
public: __property HttpStaticObjectsCollection* get_StaticObjects();
[JScript]
public function get StaticObjects() : HttpStaticObjectsCollection;

Property Value

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

Remarks

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.

Requirements

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

See Also

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

Show:
© 2016 Microsoft