The Repository Type Information Model (RTIM) includes a class named ReposTypeLib; each instance of this class corresponds to a repository type library. Each repository type library describes an information model.
To create an instance of the ReposTypeLib class
Note Each instance of ReposTypeLib has a collection of types, where each type is either a class, an interface, or a relationship type. The collection is called ReposTypeInfos, and is used to ensure that unique names are used for all classes, interfaces, and relationship types in your information model.
Creating Type Information Programmatically