System.Web.SessionState.HttpSessionState.StaticObjects Property

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

Syntax

public System.Web.HttpStaticObjectsCollection StaticObjects { get; }

Value

a System.Web.HttpStaticObjectsCollection

Remarks

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

The HttpSessionState.StaticObjects property is provided for compatibility with earlier versions of ASP.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0