ASP » Application » Contents.Remove

Version: 3.0

Syntax:
Application.Contents.Remove (Name|Integer)
Name
The Name argument is the name of the item to be deleted. It must be enclosed in a pair of quotes.
Integer
The Integer argument is the position number of the item in the collection to be deleted. The numbering sequence for a collection starts at one, not zero.

The Contents.Remove method is used to remove a single item from a Contents collection.

The Contents.Remove method is used to delete one specified item in the Application.Contents collection.

You may use only one of the two possible choices for the mandatory argument.

Examples

Code:
<%
Application("name") = "Application Maker"
Application("publishdate") = "05/15/01"
Application("author") = "DevGuru"
Set Application("Obj1") = Server.CreateObject("ADODB.Connection")

Application.Contents.Remove(1)
Application.Contents.Remove("publishdate")
Output:
author=DevGuru
Obj1 is an object.

See Also: