StateRuntime Class


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Manages session data stored in the ASP.NET state service. This class cannot be inherited.

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


[SecurityPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public sealed class StateRuntime : IStateRuntime


Initializes a new instance of the StateRuntime class.


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodProcessRequest(IntPtr, Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, IntPtr)

Used by the ASP.NET state server to process session data.

System_CAPS_pubmethodProcessRequest(IntPtr, Int32, String, Int32, Int32, Int32, Int32, Int32, IntPtr)

Used by the ASP.NET state server to process session data.


Stops the processing of session data stored in the ASP.NET state server.


Returns a string that represents the current object.(Inherited from Object.)

ASP.NET supports the option of managing session state out-of-process using a Windows service called the ASP.NET state service. The StateRuntime class is used by unmanaged code in this service to manage session data. This class supports the .NET Framework infrastructure implementation of the ASP.NET state service and is not intended be used directly from your code.

The ASP.NET state service is not the default method of ASP.NET session-state management; ASP.NET supports an in-process management of session state by default. It also supports a second out-of-process option that manages session state in a Microsoft SQL Server database and enables custom session-state management solutions. For more information about session-state storage options, see Session-State Modes.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top