Meta Data Services Programming
ReposRoot CreateTypeLib Method
This method creates an empty repository type library and attaches it to the root of the repository. Each repository type library represents an information model. After you create an empty information model, you can populate it with classes, interfaces, properties, and so on.
Syntax
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. It 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. |
Remarks
This method does not create an external type library; it creates a ReposTypeLib object in a repository database.
You use this method only when you are creating an information model programmatically. If you are using the model installer to add a predefined information model to a repository, you do not need this method.