HttpStaticObjectsCollection.Count 속성

정의

컬렉션에 있는 개체의 수를 가져옵니다.

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

속성 값

Int32

컬렉션의 개체 수입니다.

구현

예제

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

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

적용 대상