共用方式為


HttpApplicationStateBase.StaticObjects 屬性

定義

在衍生類別中覆寫時,取得 object 項目宣告的所有物件,其中範圍在 ASP.NET 應用程式中設定為 "Application"。

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

屬性值

應用程式中物件的集合。

例外狀況

備註

應用程式物件定義于元素內的 Global.asax 檔案中,語法如下:

<object runat="server" scope="Application">Object information</object>

適用於