HttpApplicationState.Contents Propriété

Définition

Obtient une référence à l’objet 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

Valeur de propriété

HttpApplicationState

Référence à l'objet HttpApplicationState.

Exemples

L’exemple suivant crée un objet HttpApplicationState utilisé pour accéder aux noms d’objets dans la collection d’états de l’application.


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

Remarques

Cette propriété assure la compatibilité avec les versions antérieures d’ASP.

S’applique à