Share via


IHttpSessionState.StaticObjects プロパティ

定義

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

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

プロパティ値

Global.asax ファイルで宣言されたオブジェクトが格納されている HttpStaticObjectsCollection

次のコード例では、 インターフェイスの StaticObjects プロパティを IHttpSessionState 実装します。

public HttpStaticObjectsCollection StaticObjects
{
  get { return pStaticObjects; }
}
Public ReadOnly Property StaticObjects As HttpStaticObjectsCollection _
  Implements IHttpSessionState.StaticObjects

  Get
    Return pStaticObjects
  End Get
End Property

注釈

StaticObjects は、ASP の旧バージョンとの互換性のために提供されています。

適用対象

こちらもご覧ください