A collection of all of the items which have been created and added to the Application object during client sessions through script commands, such as the Server.CreateObject, rather than by using the HTML <OBJECT> tag.
The Contents collection property contains a list of the items that have been created and added to the Application object.
Objects can be added to the collection by using Server.CreateObject or by assigning scalar variables.
You can iterate through a collection using a For Each item in ... Next loop.
There is one mandatory argument.
<%
Application("name") = "Application Maker"
Application("publishdate") = "05/15/01"
Application("author") = "DevGuru"
Set Application("Obj1") = Server.CreateObject("ADODB.Connection")
For Each Item in Application.Contents
If IsObject(Application.Contents(Item)) Then
Response.Write Item & " is an object.<BR>"
Else
Response.Write Item & "=" & Application.Contents(Item) & "<BR>"
End If
Next
%>
NAME=Application Maker
PUBLISHDATE=05/15/01
AUTHOR=DevGuru
OBJ1 is an object.