Freigeben über


HttpApplicationState.Contents-Eigenschaft

Ruft einen Verweis auf das HttpApplicationState-Objekt ab.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

Syntax

'Declaration
Public ReadOnly Property Contents As HttpApplicationState
'Usage
Dim instance As HttpApplicationState
Dim value As HttpApplicationState

value = instance.Contents
public HttpApplicationState Contents { get; }
public:
property HttpApplicationState^ Contents {
    HttpApplicationState^ get ();
}
/** @property */
public HttpApplicationState get_Contents ()
public function get Contents () : HttpApplicationState

Eigenschaftenwert

Ein Verweis auf das HttpApplicationState-Objekt.

Hinweise

Diese Eigenschaft stellt die Kompatibilität mit früheren Versionen von ASP bereit.

Beispiel

Im folgenden Beispiel wird ein neues HttpApplicationState-Objekt erstellt, das für den Zugriff auf die Objektnamen in der Anwendungszustandsauflistung verwendet wird.

Dim AppState2 As HttpApplicationState
 
AppState2 = Application.Contents
 
Dim StateVars(AppState2.Count) As String
StateVars = AppState2.AllKeys
HttpApplicationState AppState2;
 
AppState2 = Application.Contents;
 
String[] StateVars = new String[AppState2.Count];
StateVars = AppState2.AllKeys;
HttpApplicationState AppState2;
AppState2 = get_Application().get_Contents();
String StateVars[] = new String[AppState2.get_Count()];
StateVars = AppState2.get_AllKeys();
var AppState2 : HttpApplicationState

AppState2 = Application.Contents

var StateVars : String[] = new String[AppState2.Count]
StateVars = AppState2.AllKeys

Plattformen

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

HttpApplicationState-Klasse
HttpApplicationState-Member
System.Web-Namespace