HttpStaticObjectsCollection.Count 屬性

定義

取得集合中的物件數量。

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

屬性值

收藏中的物件數量。

實作

範例

以下範例中的程式碼僅在集合中物件數量超過五個時執行。

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

適用於