This method creates the first version of a new Repository object of the specified type. The newly created version is assigned the object-version identifier passed in as an argument. This is unlike IRepository::CreateObject(), in which Microsoft® Repository assigns the version ID.
HRESULT IRepository2::CreateObjectEx(
VARIANT sTypeID,
VARIANT sObjectID,
VARIANT ExtVersionID,
IRepositoryObjectVersion **ppRepObjVer);
Parameters
sTypeID
[in]
The type of the new object; that is, the object identifier of the class definition to which the new object conforms.
sObjectID
[in]
The object identifier to be assigned to the new object. Pass in OBJID_NULL to have Repository assign an object identifier for you.
ExtVersionID
[in]
The object-version identifier (20 bytes) to be assigned to the first version of the object.
ppRepObjVer
[out]
The IRepositoryObjectVersion pointer to the newly created version.
Return Value
S_OK
The method completed successfully.
The method failed to complete successfully.