HttpApplicationState.Contents Propiedad

Definición

Obtiene una referencia al objeto 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

Valor de propiedad

HttpApplicationState

Una referencia al objeto HttpApplicationState.

Ejemplos

En el ejemplo siguiente se crea un nuevo HttpApplicationState objeto que se usa para tener acceso a los nombres de objeto de la colección de estados de la aplicación.


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

Comentarios

Esta propiedad proporciona compatibilidad con versiones anteriores de ASP.

Se aplica a