asp.net.ph

HttpStaticObjectsCollection.Count Property

System.Web Namespace   HttpStaticObjectsCollection Class


Gets the number of objects in the collection.

[ VB ]
Public ReadOnly Property Count As Integer  Implements _
   ICollection.Count

[ C# ]
public int Count {get;}

[ C++ ]
public: __property int get_Count ( );

[ JScript ]
public function get Count ( ) : int;

Property Value

The number of objects in the collection.

Implements

ICollection.Count

Example

[ VB, C# ] The code in the following example executes only if the number of objects in the collection exceeds five.

[ VB ]
If Application.StaticObjects.Count > 5 Then
   ' ... do whatever here
End If


[ C# ]
if ( Application.StaticObjects.Count > 5 ) {
   // ... do whatever here
}
See Also

HttpStaticObjectsCollection Members   HttpApplicationState.StaticObjects Property 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