System.Web Namespace HttpApplicationState Class
Gets the number of objects in the HttpApplicationState collection.
[ VB ]
Overrides Public ReadOnly Property Count As Integer Implements _
ICollection.Count
[ C# ]
public override int Count {get;}
[ C++ ]
public: __property virtual int get_Count ( );
[ JScript ]
public function get Count ( ) : int;
The number of item objects in the collection. The default is 0.
ICollection.Count
The following example fills a string array with all the object names in the application state collection. The Count property is used to specify the string array's dimension.
String [ ] stateVars = new String [ Application.Count ];
stateVars = Application.AllKeys;
Dim stateVars ( Application.Count ) As String
stateVars = Application.AllKeys
var stateVars : String [ ] = new String [ Application.Count ];
stateVars = Application.AllKeys; |
|
C# |
VB |
JScript |
HttpApplicationState Members