HttpApplicationState.GetKey Method
.NET Framework 3.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)
Community Additions
ADD
Show: