System.Web Namespace HttpApplicationState Class
Gets a reference to the HttpApplicationState object.
[ VB ]
Public ReadOnly Property Contents As HttpApplicationState
[ C# ]
public HttpApplicationState Contents {get;}
[ C++ ]
public: __property HttpApplicationState* get_Contents ( );
[ JScript ]
public function get Contents ( ) : HttpApplicationState;
A reference to the HttpApplicationState object.
This property provides compatibility with earlier versions of ASP.
The following example creates a new HttpApplicationState object that is then used to access the object names in the application state collection.
HttpApplicationState myAppvars = Application.Contents;
String [ ] stateVars = new String [ myAppvars.Count ];
stateVars = myAppvars.AllKeys;
Dim myAppvars As HttpApplicationState = Application.Contents
Dim stateVars ( myAppvars.Count ) As String
stateVars = myAppvars.AllKeys
var myAppvars : HttpApplicationState = Application.Contents;
var stateVars : String [ ] = new String [ myAppvars.Count ];
stateVars = myAppvars.AllKeys; |
|
C# |
VB |
JScript |
HttpApplicationState Members