IClassDef::ObjectInstances

Meta Data Services Programming

Meta Data Services Programming

IClassDef::ObjectInstances

This method materializes an IObjectCol interface pointer for the collection of all objects in the repository that conform to this class.

HRESULT ObjectInstances(
IObjectCol  **
ppIObjectCol
);

Parts

*ppIObjectCol

[out]
The interface pointer for the object collection.

Return Value

S_OK

The method completed successfully.

ErrorValues

This method failed to complete successfully.

Remarks

The retrieved collection contains one version of each object that conforms to the class. For each such object, the repository engine uses its resolution strategy to choose which version appears in the collection.

ObjectInstances is not workspace-scoped.

See Also

IClassDef Interface

Resolution Strategy for Objects and Object Versions