sloppycode.net
ASP Reference



Application.Contents(key)

The contents collection of the Application object has 3 properties : Item, Key and Count. These are essentially variables that can be used accross the scope of the Application, only being reset, unlike the Session object, when the Server crashes or is restarted.

Item specifies the value of a specific member of the Contents collection, for example 'Application.Contents.Item("Town") = 'MyTown'.

Key represents a certain element in the Contents collection, which can be used if you do not know the name of the specific item.

It is safer to use the Key property than Item to avoid confusion - each key corresponds to its item name according to the order in which they were set.

The Count property specifies how many items are present in the Contents collection.

NOTE: 'Application(3) = 3.22' is the same as 'Application.Contents(3) = 3.22' which is the same as 'Application.Contents.Item(3) = 3.22'.
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap





Buy on Amazon



Buy on Amazon



Buy on Amazon



Buy on Amazon