There is one Repository type library for every tool information model contained in the Repository. Each tool 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 a tool 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).
Invoke
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.