對於Default選項來說
public interface IRequiresSessionState
{}
public interface IReadOnlySessionState : IRequiresSessionState
{}
具體采用何種會話狀態行為取決於當前HTTP上下文(通過HttpContext的靜態屬性Current表示)
public sealed class HttpContext : IServiceProvider
{
//其他成員
public void SetSessionStateBehavior(
SessionStateBehavior sessionStateBehavior)
}
public class HttpContextBase: IServiceProvider
{
//其他成員
public void SetSessionStateBehavior(
SessionStateBehavior sessionStateBehavior)
}
返回目錄
編輯推薦
ASP
Microsoft
Java程序性能優化
Visual C++音頻/視頻技術開發與實戰
[
From:http://tw.wingwit.com/Article/program/net/201311/16096.html