HttpApplicationState.Count 속성

정의

HttpApplicationState 컬렉션의 개체 수를 가져옵니다.

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

속성 값

Int32

컬렉션의 항목 개체 수입니다. 기본값은 0입니다.

예제

다음 예제에서는 컬렉션의 개체 수가 5 개를 초과 하는 경우에 실행 합니다.

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

적용 대상