Microsoft KB Archive/269540

= DOC: IRepositoryObject2 Interface Does Not Support Methods of IRepositoryObjectVersion =

Article ID: 269540

Article Last Modified on 10/3/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



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.

Keywords: kbinfo kbbug kbdocerr KB269540

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.