HttpSessionState.StaticObjects 속성

정의

ASP.NET 애플리케이션 파일 Global.asax에서 <object Runat="Server" Scope="Session"/> 태그로 선언된 개체 컬렉션을 가져옵니다.

public:
 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

속성 값

HttpStaticObjectsCollection

Global.asax 파일에 선언된 개체를 포함하는 HttpStaticObjectsCollection입니다.

예제

다음 코드 예제에서는 컬렉션에 있는 id 개체의 개체 형식 및 개체를 나열합니다 StaticObjects .

foreach (System.Collections.DictionaryEntry de in Session.StaticObjects)
  Response.Write(de.Key + " is of type " + de.Value.GetType().ToString() + "<br />");
For Each de As System.Collections.DictionaryEntry In Session.StaticObjects
  Response.Write(String.Format("{0} is of type {1}<br />", de.Key, de.Value.GetType()))
Next

설명

페이지에 개체 serialization을 지원 하지 않습니다 하 고 Mode out-of-process-는 (SQLServer 또는 StateServer), 개체 생성 되지 것입니다 및이 컬렉션에 추가 되지 것입니다.

StaticObjects 속성은 이전 버전의 ASP와의 호환성을 위해 제공됩니다.

적용 대상

추가 정보