共用方式為


IStateRuntime 介面

定義

定義用於管理工作階段資料之介面的 ASP.NET 狀態服務。

public interface class IStateRuntime
[System.Runtime.InteropServices.Guid("7297744b-e188-40bf-b7e9-56698d25cf44")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IStateRuntime
[<System.Runtime.InteropServices.Guid("7297744b-e188-40bf-b7e9-56698d25cf44")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IStateRuntime = interface
Public Interface IStateRuntime
衍生
屬性

備註

ASP.NET 可以使用稱為 ASP.NET 狀態服務的 Windows 服務來管理會話狀態跨進程。 此 StateRuntime 服務中的 Unmanaged 程式代碼會使用此類別來管理工作階段資料。 這個類別支援 ASP.NET 狀態服務的 .NET Framework 基礎結構實作,而且不適合直接從您的程式代碼使用。

使用 ASP.NET 狀態服務不是在 ASP.NET 中管理 sessionstate 的預設方法;ASP.NET 預設支援進程會話狀態管理。 它也支援第二個跨進程選項,以管理 Microsoft SQL Server 資料庫中的會話狀態,並啟用自定義會話狀態管理解決方案。 如需工作階段狀態記憶體選項的詳細資訊,請參閱 工作階段狀態模式

方法

ProcessRequest(IntPtr, Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, IntPtr)

由 ASP.NET 狀態伺服器用於處理工作階段資料。

ProcessRequest(IntPtr, Int32, String, Int32, Int32, Int32, Int32, Int32, IntPtr)

由 ASP.NET 狀態伺服器用於處理工作階段資料。

StopProcessing()

停止儲存在 ASP.NET 狀態伺服器中的工作階段資料處理。

適用於

另請參閱