This method creates a new Microsoft® Repository type library and attaches it to the root of the repository. Each Repository type library represents an information model.
Set variable = object.CreateTypeLib(sObjId, Name, TypeLibId)
The CreateTypeLib method syntax has the following parts.
| Part | Description | 
| variable | A variable declared as a ReposTypeLib object. Receives the new Repository type library. | 
| object | An object expression that evaluates to a ReposRoot object. | 
| sObjId | The object identifier to be used for the new Repository type library object. The Repository engine will assign an object identifier if you set this parameter to OBJID_NULL. | 
| Name | The name of the new Repository type library. | 
| TypeLibId | The global identifier by which this Repository type library is referenced. | 
This method does not create an external type library; it creates a ReposTypeLib object in the Repository database.