The following table shows other differences between Microsoft® Repository version 1.0 and Repository version 2.0.
Description | V1 engine | V2 engine |
IRepositoryItem::get_Item() | Out of range integer index returns EREP_BADPARAMS. | Out of range integer index returns DISP_E_BADINDEX. |
IRelationshipCol::Insert()
ITargetObjectCol::Insert() |
Insert appends to the collection if the collection is a nonsequenced. | Insert fails for nonsequenced collections (EREP_COL_NOT-SEQUENCED) and destination collections (EREP_RELSHIP_ORGONLY). |
IRelationshipCol::Move()
ITargetObjectCol::Move() |
Fails with EREP_RELSHIP_ ORGONLY for nonsequenced and destination collections. | Fails with EREP_COL_NOT-SEQUENCED for nonsequenced collections, and EREP_RELSHIP_ ORGONLY for destination collections. |
IRepositoryObjectVersion::put_Name() | Error EREP_OBJ_NO-NAMING-RELSHIP is not added to the error queue. | Error REP_OBJ_NONAMING-RELSHIP is added to the error queue. |
Unique naming collections: Item B with name "B" is added multiple times to a unique naming collection. | Error code is EREP_RELSHIP_DUPENAME. | Error code is EREP_RELSHIP_EXISTS. |
IRepositoryItem::get_Name() | Succeeds on a non-naming relationship (returns "0"). | Fails. |
IRelationshipCol::get_Item()
ITargetObjectCol::get_Item() |
Argument can be INTID, OBJID, Index, or Name. | Argument can be OBJID, Index, or Name. |
IRepositoryODBC::ExecuteQuery() on SQL Server. | Checks for INTID column in result set. | Accepts more than just INTID whenever implicit conversion is possible. |
IObjectCol::Refresh() on object instances collection. | Refreshes properties and then objects. | Refreshes objects and then properties. |