DOC: IRepositoryObject2 Interface Does Not Support Methods of IRepositoryObjectVersion (269540)



The information in this article applies to:

  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q269540

SUMMARY

If a Repository developer declares an object as IRepositoryObject2, and then calls a method on this object that is defined on the IRepositoryObjectVersion interface (for example, FreezeVersion), the method call fails. The SQL Server Metadata Services documentation implies that this is possible when it implies that IRepositoryObject and IRepositoryObjectVersion are interchangeable, and subsequently states that IRepositoryObject2 implements all the properties and methods of IRepositoryObject.

MORE INFORMATION

The SQL Server Metadata Services documentation defines a set of methods and properties on the IRepositoryObject interface. The documenation also states that the IRepositoryObject2 interface implements all the methods and properties of IRepositoryObject. This is correct as far as the methods and properties described as belonging to IRepositoryObject are concerned.

However, elsewhere, the documentation implies that IRepositoryObject and IRepositoryObjectVersion are interchangeable. In fact, IRepositoryObject does support the methods defined on IRepositoryObjectVersion. FreezeVersion is an example of one such method. However, IRepositoryObject2 does not support these methods.

Modification Type:MajorLast Reviewed:10/3/2003
Keywords:kbBug kbdocerr kbinfo KB269540