HttpApplicationState.StaticObjects HttpApplicationState.StaticObjects HttpApplicationState.StaticObjects HttpApplicationState.StaticObjects Property


범위가 ASP.NET 애플리케이션 내의 "애플리케이션"으로 설정된 <object> 태그에 의해 선언된 개체를 모두 가져옵니다.Gets all objects declared by an <object> tag where the scope is set to "Application" within the ASP.NET application.

 property System::Web::HttpStaticObjectsCollection ^ StaticObjects { System::Web::HttpStaticObjectsCollection ^ get(); };
public System.Web.HttpStaticObjectsCollection StaticObjects { get; }
member this.StaticObjects : System.Web.HttpStaticObjectsCollection
Public ReadOnly Property StaticObjects As HttpStaticObjectsCollection

속성 값

해당 페이지에 있는 개체의 컬렉션입니다.A collection of objects on the page.


다음 예제에서는 모든 애플리케이션 개체를 가져옵니다는 HttpStaticObjectsCollection 변수 및 개체 수가 0 보다 큰 경우에 루틴을 실행 합니다.The following example gets all application objects into a HttpStaticObjectsCollection variable and executes a routine only if the number of objects is greater than 0.

HttpStaticObjectsCollection PageObjects;
PageObjects = Application.StaticObjects;
if (PageObjects.Count > 0)
Dim PageObjects As HttpStaticObjectsCollection
PageObjects = Application.StaticObjects
If PageObjects.Count > 0 Then
End If   


애플리케이션 개체 내에서 Global.asax 파일에 정의 된는 <object runat="server" scope="Application"> </object> 태그입니다.Application objects are defined in the Global.asax file inside the <object runat="server" scope="Application"> </object> tags.

적용 대상