HttpSessionStateContainer.StaticObjects 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 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
屬性值
一個 HttpStaticObjectsCollection 包含在 Global.asax 檔案中宣告的物件。
實作
備註
若頁面上的物件不支援序列化且 Mode 處於程序外(SQLServer 或 StateServer),該物件將不會被建立,也不會加入此集合。
StaticObjects 是為了與早期版本的 ASP 相容而提供。