asp.net.ph

Application.Count Property

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;

Property Value

The number of item objects in the collection. The default is 0.

Implements

ICollection.Count

Example

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;
  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