編輯

共用方式為


HttpStaticObjectsCollection.Count Property

Definition

Gets the number of objects in the collection.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Property Value

The number of objects in the collection.

Implements

Examples

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

if (Application.StaticObjects.Count > 5)
{
   //...
}
If Application.StaticObjects.Count > 5 Then
   '...
End If

Applies to