HttpStaticObjectsCollection.Count 屬性

定義

取得集合中的物件數目。

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

屬性值

Int32

集合中 物件的數目。

實作

範例

只有在集合中的物件數目超過五時,下列範例中的程式碼才會執行。

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

適用於