HttpApplicationState.Count 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得集合中的 HttpApplicationState 物件數量。
public:
virtual property int Count { int get(); };
public override int Count { get; }
member this.Count : int
Public Overrides ReadOnly Property Count As Integer
屬性值
集合中物品物件的數量。 預設值是 0。
範例
以下範例僅在集合中物件數超過五個時執行。
if (Application.Count > 5)
{
//...
}
If Application.Count > 5 Then
' ...
End If