Certain propertiesmethods, and operations can only apply to Collection objects. This error has the following cause and solution:

  • You specified an operation or property that is exclusive to collections, but the object isn’t a collection.

    Check the spelling of the object or property name, or verify that the object is a Collectionobject. Also look at the Add method used to add the object to the collection to be sure the syntax is correct and that anyidentifiers were spelled correctly.