HttpApplicationState.Contents 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 HttpApplicationState 物件的參考。
public:
property System::Web::HttpApplicationState ^ Contents { System::Web::HttpApplicationState ^ get(); };
public System.Web.HttpApplicationState Contents { get; }
member this.Contents : System.Web.HttpApplicationState
Public ReadOnly Property Contents As HttpApplicationState
屬性值
HttpApplicationState 物件的參考。
範例
下列範例會建立新的 HttpApplicationState 物件,用來存取應用程式狀態集合中的物件名稱。
HttpApplicationState AppState2;
AppState2 = Application.Contents;
String[] StateVars = new String[AppState2.Count];
StateVars = AppState2.AllKeys;
Dim AppState2 As HttpApplicationState
AppState2 = Application.Contents
Dim StateVars(AppState2.Count) As String
StateVars = AppState2.AllKeys
備註
此屬性提供與舊版 ASP 的相容性。