Accessing Repository Objects

Access to Microsoft® Repository objects is supported at both the COM level and the Automation level, as shown in the following table.

To Use
Create an object CreateObject method of the IRepository interface.
Retrieve an object Object property of the IRepository interface.
Delete an object Delete method of the IRepositoryItem interface.
Get the value of an early-bound object property Automation: the syntax variable = object.property, as for any Automation object property.

COM: the get_PropertyName method of the COM interface to which the property is attached, where PropertyName is the name of the property to be retrieved. You can also use the late-bound property access method.

Get the value of a late-bound object property (that is, object class is not in an available type library) Automation: the syntax variable = object.property, as for any Automation object property.

COM: the standard Automation method-invocation technique to invoke the get_PropertyName method, where PropertyName is the name of the property to be retrieved. Since all Repository interfaces that expose late-bound properties are indirectly derived from the IDispatch interface, the GetIDsOfNames and Invoke methods are available for use.

Set the value of an early-bound object property Automation: the syntax object.property = value, as for any Automation object property.

COM: the put_PropertyName method of the COM interface to which the property is attached, where PropertyName is the name of the property to be set. You can also use the late-bound property access method.

Set the value of a late-bound object property (that is, object class is not in an available type library) Automation: the syntax object.property = value, as for any Automation object property.

COM: the standard Automation method-invocation technique to invoke the put_PropertyName method, where PropertyName is the name of the property to be set. Since all Repository interfaces that expose late-bound properties are indirectly derived from the IDispatch interface, the GetIDsOfNames and Invoke methods are available for use.

Get the object identifier of an object ObjectID property of the IRepositoryObject interface.
Get the version identifier of an object VersionID property of the IRepositoryVersion interface.
Set the object identifier of an object Pass object identifier as a parameter when creating the object.
Get the internal identifier of an object InternalID property of the IRepositoryObject interface.

For More Information   Version Management

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