Repository Object

See Also

When you define a tool information model, the classes, relationships, properties, and collections for the model are stored in a repository. Multiple tool information models may be stored in the same repository.

When you access a repository, you do so via a Repository instance.

When to Use

You can use a Repository instance to:

Properties

Property Description
ConnectionString The ODBC connection string that the Repository engine uses to obtain an ODBC connection. This property is not a default interface member.
Object Retrieves the specified Repository object.
ReposConnection The ODBC connection handle that the Repository engine is using to access the Repository database. This property is not a default interface member.
RootObject The root Repository object of the open repository.
Transaction The transaction processing interface.
Version Retrieves the specified Repository object version.
MajorDBVersion The major version number of the first Repository engine version that introduced this database format.
MinorDBVersion The minor version number of the first Repository engine version that introduced this database format.

Methods

Method Description
Create Creates a new Repository database.
CreateObject Creates a new Repository object in the open repository.
ExecuteQuery Executes the specified SQL query against the Repository database. This method is not a default interface member.
FreeConnection Releases an ODBC connection handle. This method is not a default interface member.
GetNewConnection Obtains a new ODBC connection handle using the same connection settings that the Repository engine is using to access the Repository database. This method is not a default interface member.
InternalIDToObjectID Converts an internal identifier into an object identifier.
InternalIDToVersionID Converts an internal object-version identifier into an object-version identifier.
ObjectIDToInternalID Converts an object identifier into an internal identifier.
Open Opens the specified repository.
Refresh Refreshes the cached image of all data for the open repository.
VersionIDToInternalID Converts an object-version identifier into an internal object-version identifier.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.