Important: The information in this document is obsolete and should not be used for new development.
CountTaggedCollectionItemsYou can use the
CountTaggedCollectionItemsfunction to obtain the total number of items in a collection that have a specified collection tag.
long CountTaggedCollectionItems(Collection source, CollectionTag tag);
- A reference to the collection object whose items you want to count.
- 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
CountTaggedCollectionItemsfunction returns as its function result the total number of items in the source collection whose collection tags match the value you specify in the
SEE ALSOFor 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
CountCollectionItemsfunction, described in the previous section.