GetObjectKeys
Purpose
GetObjectKeys returns the keys for all object versions in the repository, in a metamodel, or in a class that have the current label.
Description
If all of the four parameters gModelGuid, ModelLoid, gClassGuid, and ClassLoid are null or not specified, then all object versions in the repository with the current label are returned.
If one of gModelGuid or ModelLoid is not null, then all object versions in the metamodel with the current label are returned.
If both gModelGuid and ModelLoid are null and one of gClassGuid or ClassLoid is not null, then all object versions in the class with the current label are returned.
Requirements:
The object ID (internal or globally unique) or the name must be set.
Syntax
HRESULT GetObjectKeys(
vector<CMetaVersionedObjectClassKey>& returnList,
const GUID &gModelGuid = NULLGUID,
const OBJECTID_t ModelLoid = NULLLOID,
const GUID &gClassGuid = NULLGUID,
const OBJECTID_t ClassLoid = NULLLOID);
Argument |
In/Out |
Description |
returnList |
In |
Reference to vector to return the object keys; the list is cleared before adding the return collection. |
gModelGuid |
In |
Globally unique ID for a metamodel. |
ModelLoid |
In |
Internal object ID for a metamodel. |
gClassGuid |
In |
Globally unique ID for a class. |
ClassLoid |
In |
Internal object ID for a class. |