ReposTypeLib Object

Meta Data Services Programming

Meta Data Services Programming

ReposTypeLib Object

Repository type libraries are represented by ReposTypeLib objects. There is one repository type library for every information model contained in a repository database. Each information model provides a logical grouping of all of the type definitions.

ReposTypeLib objects are often used to support navigation when traversing an information model. However, you can also use ReposTypeLib objects to define or extend information models programmatically. To insert a new information model into the repository database, use the ReposRoot object.

A ReposTypeLib object is also a RepositoryObject and a RepositoryObjectVersion object. You can also access members that are defined for those objects. For more information about how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.

When to Use

Use a ReposTypeLib object to:

  • Define new classes, relationship types, and interfaces for an information model to create or extend an information model programmatically.

  • 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
Name The name of the ReposTypeLib object
Prefix The prefix of an interface name that distinguishes an interface from other identically named interfaces
TypeLibID The global identifier for the repository type library

Methods
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
Properties The collection of all persistent properties that are attached to the ReposTypeLib object

See Also

RepositoryObject Object

RepositoryObjectVersion Object

ReposRoot Object