System.Web Namespace HttpApplicationState Class
Gets access to an individual object in an HttpApplicationState collection. This property is overloaded to allow access to an object by name or numerical index.
In [ C# ], this property is the indexer for the HttpApplicationState class.
1. Gets the value of a single HttpApplicationState object by name.
2. Gets a single HttpApplicationState object by index.
The following example returns the first object ( index = 0 ) from the HttpApplicationState collection and assigns it as the value of a new object variable named myObject.
NOTE: This example shows how to use one of the overloaded versions of the Item property ( HttpApplicationState indexer ). For other examples that might be available, see the individual overload topics.
Object myObject = Application [ 0 ];
Dim myObject As Object = Application ( 0 )
var myObject : Object = Application [ 0 ]; |
|
C# |
VB |
JScript |
HttpApplicationState Members