IReposTypeLib Interface
From Meta Data Services Programming
Meta Data Services Programming
IReposTypeLib Interface
There is one repository type library for every information model contained in the repository. Each information model provides a logical grouping of all of the type definitions related to a particular tool (or tool set).
To add a new repository type library to the repository, use the IManageReposTypeLib interface.
When to Use
Use the IReposTypeLib interface to:
- Define new classes, relationship types, and interfaces for an information model.
- Retrieve or modify the global identifier associated with a repository type library.
- Determine which type definitions are associated with a particular repository type library.
Properties
| Property | Description |
|---|---|
| TypeLibID | The global identifier for the repository type library |
Methods
| IUnknown method | Description |
|---|---|
| QueryInterface | Returns pointers to supported interfaces |
| AddRef | Increments the reference count |
| Release | Decrements the reference count |
| IDispatch method | Description |
|---|---|
| GetIDsOfNames | Maps a single member and a set of argument names to a corresponding set of dispatch identifiers |
| GetTypeInfo | Retrieves a type information object, which can be used to get the type information for an interface |
| GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1) |
| Invokes | Provides access to properties and methods exposed by an Automation object |
| IRepositoryDispatch method | Description |
|---|---|
| get_Properties | Retrieves the IReposProperties interface pointer. The IReposProperties interface provides access to the Properties collection. |
| IReposTypeLib method | Description |
|---|---|
| CreateClassDef | Creates a new class definition object |
| CreateInterfaceDef | Creates a new interface definition object |
| CreateRelationshipDef | Creates a new relationship definition object |
Collections
| Collection | Description |
|---|---|
| ReposTypeInfos | The collection of all classes, interfaces, and relationship types that are defined in the repository type library |
| ReposTypeLibContexts | The collection of one repository root object that is the context for the repository type library |