A Repository object is an object that is stored in the Microsoft® Repository database and is managed by the Repository engine.
In this release of Repository, objects can be versioned. A Repository object version is a particular rendition of a Repository object. Each version of an object can differ from other versions of that object in its property values and collections. When you manipulate a Repository object within a Microsoft Visual Basic® program. you actually are manipulating a particular version of that object. That is, you manipulate a RepositoryObjectVersion object.
You can declare any Repository object version with the following line:
Dim newReposObject As RepositoryObjectVersion
In earlier releases of Repository, the object model included the RepositoryObject object, but not the RepositoryObjectVersion object. If you have Visual Basic programs written against earlier releases of Repository, those programs might include declarations like the following:
Dim oldReposObject As RepositoryObject
These programs will still work, because the Repository object model still includes the RepositoryObject object. Visual Basic still recognizes the preceding declaration as valid. Whenever you manipulate an object, you actually manipulate a specific version of that object. So the object oldReposObject has the same members as any Repository object version has. In effect, the following two lines of code are equivalent:
Dim myReposObject As RepositoryObjectVersion
Dim myReposObject As RepositoryObject
Even though Repository objects are now versioned, the Repository object model includes the RepositoryObject object so that you do not need to rewrite your Visual Basic programs that declare objects as RepositoryObject objects.
Use the RepositoryObject object to manipulate the properties of a Repository object, to delete a Repository object, or to refresh the cached image of a Repository object.
Property | Description |
Interface | The specified object interface. |
InternalID | The internal identifier that the repository uses to refer to the Repository object. |
Name | The name of the Repository object. |
ObjectID | The object identifier for the Repository object. |
Repository | The open a repository instance through which this Repository object was instantiated. |
Type | The type of the Repository object. |
Method | Description |
Delete | Deletes a Repository object. |
Lock | Locks the Repository object. |
Refresh | Refreshes the cached image of a Repository object. |
Collection | Description |
Properties | The collection of all of the properties that are attached to the Repository object. |