Define Dependencies Between Type Libraries
The Repository Type Information Model (RTIM) allows model developers to define dependencies between type libraries. You can define dependencies if you want to share information models, or leverage an existing information model within a new context.
To define a dependency
- Use the DependsOn collection on the IReposTypeLib2 interface to define a dependency between two type libraries. For example, in order to define a dependency between file allocation table (FAT) and FileSys type libraries:
Use the following code to define a dependency in Automation:
Use the following code to define a dependency in COM:
pFATCol -> Add(pFileSys, RelShipName, &pRelShipName);
A pointer to the FAT type library DependsOn collection on the IReposTypeLib2 Interface.
A pointer to the FileSys type library.
The name of the relationship between the FAT and the FileSys type libraries.
A pointer to the relationship between the FAT and the FileSys type libraries.