IRepository2 Interface

Meta Data Services Programming

Meta Data Services Programming

IRepository2 Interface

This interface exposes methods for manipulating object-version identifiers, plus other methods inherited from the IRepository interface.

When to Use

Use the IRepository2 interface to create and access repository databases. You can also use this interface to create and access repository objects in a repository database, and to manipulate repository object versions.

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

IRepository Method Description
Create Creates a repository database
CreateObject Creates a new repository object
get_Object Retrieves the IRepositoryObject interface pointer for a repository object
get_RootObject Retrieves the IRepositoryObject interface pointer for the root repository object
get_Transaction Retrieves the IRepositoryTransaction interface pointer for this repository instance
InternalIDToObjectID Translates an internal identifier to an object identifier
ObjectIDToInternalID Translates an object identifier to an internal identifier
Open Opens a repository database
Refresh Refreshes unchanged cached repository data

IRepository2 Method Description
InternalIDToVersionID Translates an internal object-version identifier to an object-version identifier
get_Version Retrieves the IRepositoryObjectVersion interface pointer for a Repository object version
VersionIDToInternalID Translates an object-version identifier to an internal object-version identifier
CreateObjectEx Creates the first version of a new repository object of the specified type
get_MajorDBVersion Retrieves the major version number of the first repository engine version that introduced this database format
get_MinorDBVersion Retrieves the minor version number of the first repository engine version that introduced this database format

See Also

Repository Class