Language

SessionStateStoreData.StaticObjects プロパティ

定義

ASP.NET アプリケーション ファイル Global.asax 内の <object Runat="Server" Scope="Session"/> タグによって宣言されたオブジェクトのコレクションを取得します。

public:
 virtual property System::Web::HttpStaticObjectsCollection ^ StaticObjects { System::Web::HttpStaticObjectsCollection ^ get(); };
public virtual System.Web.HttpStaticObjectsCollection StaticObjects { get; }
member this.StaticObjects : System.Web.HttpStaticObjectsCollection
Public Overridable ReadOnly Property StaticObjects As HttpStaticObjectsCollection

プロパティ値

Global.asax ファイルで宣言されたオブジェクトを含む HttpStaticObjectsCollection 。

注釈

その

StaticObjects プロパティは、以前のバージョンの ASP との互換性のために提供されています。

カスタム セッション ストア実装者は、HttpStaticObjectsCollection メソッドを使用して、現在のHttpContext インスタンスのGetSessionStaticObjects クラスへの参照を取得できます。

Note

StaticObjects コレクションに格納されているカスタム オブジェクトは、バイナリ シリアル化をサポートする必要があります。 詳細については、「 バイナリ シリアル化」を参照してください。

適用対象

こちらもご覧ください