Important: The information in this document is obsolete and should not be used for new development.
CountTaggedCollectionItems
You can use theCountTaggedCollectionItems
function to obtain the total number of items in a collection that have a specified collection tag.
long CountTaggedCollectionItems(Collection source, CollectionTag tag);
source
- A reference to the collection object whose items you want to count.
tag
- The collection tag associated with the items you want to count.
- function result
- The total number of items in the source collection whose collection tags match the value specified in the
tag
parameter.DESCRIPTION
TheCountTaggedCollectionItems
function returns as its function result the total number of items in the source collection whose collection tags match the value you specify in thetag
parameter.SEE ALSO
For information about collection items, see "Collection Items" beginning on page 5-8.For examples of this function, see "Adding Items to a Collection" beginning on page 5-17.
To count all of the items in a collection, use the
CountCollectionItems
function, described in the previous section.