Name

AllKeys

Synopsis

Dim StateVars(Application.Count) As String 
StateVars = Application.AllKeys

Returns a string array of key names stored in the HttpApplicationState object.

Parameters

StateVars

A variable of type String array that will receive the array of key names.

Example

The example displays all keys of data stored to the Application object:

Sub Page_Load(  )
   Dim I as Integer
   Dim StateVars(Application.Count - 1) As String
   StateVars = Application.AllKeys
   For I = 0 to StateVars.Length - 1 
      Message.Text = Message.Text + StateVars(I) + "<br/>"
   Next I
End Sub

Notes

This property provides a list of key names assigned to all current Application variables.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.