HttpStaticObjectsCollection.Count Property

 

Gets the number of objects in the collection.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

Public ReadOnly Property Count As Integer

Property Value

Type: System.Int32

The number of objects in the collection.

The code in the following example executes only if the number of objects in the collection exceeds five.

If Application.StaticObjects.Count > 5 Then
   '...
End If

.NET Framework
Available since 1.1
Return to top
Show: