This documentation is archived and is not being maintained.
HttpApplicationState.Contents Property
.NET Framework 1.1
Gets a reference to the HttpApplicationState object.
[Visual Basic] Public ReadOnly Property Contents As HttpApplicationState [C#] public HttpApplicationState Contents {get;} [C++] public: __property HttpApplicationState* get_Contents(); [JScript] public function get Contents() : HttpApplicationState;
Property Value
A reference to the HttpApplicationState object.
Remarks
This property provides compatibility with earlier versions of ASP.
Example
The following example creates a new HttpApplicationState object that is used to access the object names in the application state collection.
[Visual Basic] Dim AppState2 As HttpApplicationState AppState2 = Application.Contents Dim StateVars(AppState2.Count) As String StateVars = AppState2.AllKeys [C#] HttpApplicationState AppState2; AppState2 = Application.Contents; String[] StateVars = new String[AppState2.Count]; StateVars = AppState2.AllKeys; [C++] HttpApplicationState* AppState2; AppState2 = Application->Contents; String* StateVars[] = new String*[AppState2->Count]; StateVars = AppState2->AllKeys; [JScript] var AppState2 : HttpApplicationState AppState2 = Application.Contents var StateVars : String[] = new String[AppState2.Count] StateVars = AppState2.AllKeys
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpApplicationState Class | HttpApplicationState Members | System.Web Namespace
Show: