Repository ReposConnection Property

See Also

This property contains the ODBC connection handle that the Repository engine is using to access the Repository database. This is a read-only property.

This property is not attached to the default interface for the Repository Automation object; it is attached to the IRepositoryODBC interface. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

object.ReposConnection

The ReposConnection property syntax has the following parts.

Part Description
object The object that represents the open Repository instance through which this program is interacting with the Repository.

Remarks

If you use the Repository engine's ODBC connection handle, you are not isolated from changes made by the Repository engine. For example, uncommitted changes made by the Repository engine will be visible to your application.

When using the Repository engine's ODBC connection handle, you must not change the state of the handle in a way that is incompatible with the Repository engine. Specifically, do not:

Be sure to free the handle obtained through this method before releasing your open Repository instance. To free the connection handle, use the FreeConnection method.