HttpApplicationState.Contents Propriedade
Definição
Obtém uma referência ao objeto HttpApplicationState.Gets a reference to the HttpApplicationState object.
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 da propriedade
Uma referência ao objeto HttpApplicationState.A reference to the HttpApplicationState object.
Exemplos
O exemplo a seguir cria um novo HttpApplicationState objeto que é usado para acessar os nomes de objeto na coleção de estado do aplicativo.The following example creates a new HttpApplicationState object that is used to access the object names in the application state collection.
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
Comentários
Essa propriedade fornece compatibilidade com versões anteriores do ASP.This property provides compatibility with earlier versions of ASP.