Important: The information in this document is obsolete and should not be used for new development.
EmptyCollectionYou use the
EmptyCollectionfunction to remove every item in a collection.
void EmptyCollection (Collection target);
- A reference to the collection object you want to empty.
DESCRIPTIONThis function removes every item in the collection referenced by the
targetparameter. This function provides the fastest mechanism for emptying a collection.
SEE ALSOFor information about collection items, see "Collection Items" beginning on page 5-8.
To remove all of the items in a collection whose attributes match a specified pattern, use the
PurgeCollectionfunction, described on page 5-67.
To remove all of the items in a collection with a specified collection tag, use the
PurgeCollectionTagfunction, described in the previous section.