asp.net.ph

Application.Contents Property

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;

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 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;
  C# VB JScript

See Also

HttpApplicationState Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph