Freigeben über


IHttpSessionState.StaticObjects Eigenschaft

Definition

Ruft eine Auflistung von Objekten ab, die von <object Runat="Server" Scope="Session"/> Tags innerhalb der ASP.NET Anwendungsdatei Global.asax deklariert werden.

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

Eigenschaftswert

Ein HttpStaticObjectsCollection enthaltende Objekte, die in der Datei "Global.asax" deklariert sind.

Beispiele

Im folgenden Codebeispiel wird die StaticObjects Eigenschaft der IHttpSessionState Schnittstelle implementiert.

public HttpStaticObjectsCollection StaticObjects
{
  get { return pStaticObjects; }
}
Public ReadOnly Property StaticObjects As HttpStaticObjectsCollection _
  Implements IHttpSessionState.StaticObjects

  Get
    Return pStaticObjects
  End Get
End Property

Hinweise

StaticObjects wird zur Kompatibilität mit früheren Versionen von ASP bereitgestellt.

Gilt für:

Weitere Informationen