HttpSessionState.StaticObjects プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)
ASP.NET アプリケーションの Global.asax ファイルの <object Runat="Server" Scope="Session"/> タグで宣言されているオブジェクトのコレクションを取得します。
名前空間: System.Web.SessionState
アセンブリ: System.Web (system.web.dll 内)
構文
Public ReadOnly Property StaticObjects As HttpStaticObjectsCollection
Dim instance As HttpSessionState Dim value As HttpStaticObjectsCollection
value = instance.StaticObjects
public HttpStaticObjectsCollection StaticObjects { get; }
public: property HttpStaticObjectsCollection^ StaticObjects { HttpStaticObjectsCollection^ get (); }
/** @property */ public HttpStaticObjectsCollection get_StaticObjects ()
public function get StaticObjects () : HttpStaticObjectsCollection
プロパティ値
Global.asax ファイルで宣言されたオブジェクトが格納されている HttpStaticObjectsCollection。
ページのオブジェクトがシリアル化をサポートしていない場合、および Mode がプロセスの範囲外にある場合 (SQLServer または StateServer)、オブジェクトは作成されず、このコレクションにも追加されません。
StaticObjects プロパティは、ASP の旧バージョンとの互換性のために指定されます。
StaticObjects コレクションのオブジェクトの id とオブジェクト型を一覧表示するコード例を次に示します。
For Each de As System.Collections.DictionaryEntry In Session.StaticObjects Response.Write(String.Format("{0} is of type {1}<br />", de.Key, de.Value.GetType())) Next
foreach (System.Collections.DictionaryEntry de in Session.StaticObjects) Response.Write(de.Key + " is of type " + de.Value.GetType().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 名前空間
その他の技術情報
セッション状態の概要