The collection of all project items that are contained within a particular project item container.
Dispatch Identifier: DISPID_Contents (70)
| Collection Descriptor | Descriptor Value |
| Relationship Type | ProjectItemContainer-Contains-ProjectItems |
| Source Is Origin | Yes |
| Minimum Collection Size | Zero |
| Maximum Collection Size | Many |
| Sequenced Collection | No |
| Deletes Propagated | Yes |
| Destinations Named | Yes |
| Case Sensitive Names | No |
| Unique Names | Yes |
The Contents collection is a heterogeneous collection; it can contain any kind of project item that implements the IMpoProjectItem interface. If you are using the collection to enumerate a particular kind of project item, be sure to check the type (via the get_Type method) of each project item to skip over project items that are not of the desired type.
The name assigned to a project via a naming relationship of this collection is adorned to ensure that the name is unique among the collection of all Visual Basic projects in the collection. The adornment follows these rules: