HttpApplicationState.Count HttpApplicationState.Count HttpApplicationState.Count HttpApplicationState.Count Property

定義

HttpApplicationState コレクション内のオブジェクトの数を取得します。Gets the number of objects in the HttpApplicationState collection.

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

プロパティ値

コレクション内の項目のオブジェクト数。The number of item objects in the collection. 既定値は 0 です。The default is 0.

次の例は、コレクション内のオブジェクトの数が5を超えた場合にのみ実行されます。The following example executes only if the number of objects in the collection exceeds five.

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

適用対象