Bagikan melalui


IHttpSessionState.StaticObjects Properti

Definisi

Mendapatkan kumpulan objek yang dideklarasikan oleh <object Runat="Server" Scope="Session"/> tag dalam file aplikasi ASP.NET Global.asax.

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

Nilai Properti

Objek HttpStaticObjectsCollection yang berisi yang dideklarasikan dalam file Global.asax.

Contoh

Contoh kode berikut mengimplementasikan StaticObjects properti IHttpSessionState antarmuka.

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

  Get
    Return pStaticObjects
  End Get
End Property

Keterangan

StaticObjects disediakan untuk kompatibilitas dengan versi ASP yang lebih lama.

Berlaku untuk

Lihat juga