HttpApplicationState.Contents Egenskap

Definition

Hämtar en referens till objektet HttpApplicationState .

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

Egenskapsvärde

En referens till objektet HttpApplicationState .

Exempel

I följande exempel skapas ett nytt HttpApplicationState objekt som används för att komma åt objektnamnen i programtillståndssamlingen.


HttpApplicationState AppState2;

AppState2 = Application.Contents;

String[] StateVars = new String[AppState2.Count];
StateVars = AppState2.AllKeys;
Dim AppState2 As HttpApplicationState
 
AppState2 = Application.Contents
 
Dim StateVars(AppState2.Count) As String
StateVars = AppState2.AllKeys

Kommentarer

Den här egenskapen ger kompatibilitet med tidigare versioner av ASP.

Gäller för