There is one root object in each repository. The root object is the starting point for navigating to other objects in the repository. The root object serves as the starting point for both type and instance data navigations.
When you create an information model, the corresponding Microsoft® Repository type library is attached to the root object through the ReposTypeLibs collection. This collection can be used to enumerate all of the information models (type data) that are contained in the repository.
Once an information model is defined, the repository can be populated with instance data. This instance data consists of objects and relationships that conform to the classes and relationship types of the information model.
Because the objects are connected through relationships, you can navigate through this data. However, to enable general purpose repository browsers to navigate this data, the first navigational step must be from the root object of the repository through a root relationship collection to the primary objects of your information model. Primary objects are objects that make a good starting point for navigating to other objects of your information model.
Because this root relationship collection is different for each information model, it must be defined by the information model. There are two options for attaching this relationship collection to the root object:
To facilitate navigation, the root object in all repositories always has the same object identifier. The symbolic name for this object identifier is OBJID_ReposRootObj.
A ReposRoot object is also a RepositoryObject object. In addition to the members described here, ReposRoot objects also provide the members that are defined for repository objects.
Use the ReposRoot object to:
Method | Description |
CreateTypeLib | Creates a Repository type library for a new information model. |
Collection | Description |
ReposTypeLibs | The collection of Repository type libraries that are currently stored in the repository. |
Properties | The collection of all persistent properties that are attached to the ReposRoot object. |
Workspaces | The collection of all workspaces present in the repository. |