IRepository2::CreateObjectEx

Meta Data Services Programming

Meta Data Services Programming

IRepository2::CreateObjectEx

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 the repository engine assigns the version ID.

HRESULT IRepository2::CreateObjectEx(
VARIANT
sTypeID,
VARIANT sObjectID,
VARIANT ExtVersionID,
IRepositoryObjectVersion **ppRepObjVer
);

Parts

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 the repository engine 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.

Error Values

The method failed to complete successfully.

See Also

IRepository::CreateObject