HttpApplicationState.GetKey Method
.NET Framework 2.0
Gets an HttpApplicationState object name by index.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following example returns the names of all the objects in the application state collection and stores the names in a string array.
int loop1;
String stateVars[] = new String[get_Application().get_Count()];
for (loop1 = 0; loop1 < get_Application().get_Count(); loop1++) {
stateVars.set_Item(loop1, get_Application().GetKey(loop1));
}
var loop1 : int var stateVars : String[] = new String[Application.Count] for(loop1 = 0; loop1 < Application.Count; loop1++) stateVars(loop1) = Application.GetKey(loop1)
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: