HttpSessionState.Contents プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
名前空間: System.Web.SessionState
アセンブリ: System.Web (system.web.dll 内)
構文
Public ReadOnly Property Contents As HttpSessionState
Dim instance As HttpSessionState Dim value As HttpSessionState
value = instance.Contents
public HttpSessionState Contents { get; }
public: property HttpSessionState^ Contents { HttpSessionState^ get (); }
/** @property */ public HttpSessionState get_Contents ()
public function get Contents () : HttpSessionState
Contents プロパティは、ASP の旧バージョンとの互換性のために指定されます。
Contents プロパティの項目名と値を一覧表示するコード例を次に示します。
For Each s As String In Session.Contents Response.Write(String.Format("{0} = {1}<br />", s, Session(s))) Next
foreach (string s in Session.Contents) Response.Write(s + " = " + Session[s].ToString() + "<BR>");
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
.NET Framework
サポート対象 : 2.0、1.1、1.0
関連項目
HttpSessionState クラス
HttpSessionState メンバ
System.Web.SessionState 名前空間
その他の技術情報
セッション状態の概要