The Repository property is the open repository instance or workspace through which this relationship was instantiated. This is a read-only property.
Set variable = object.Repository
The Repository property syntax has the following parts:
Part | Description |
Variable | A variable declared as a reference to any object implementing the IRepository interface. Receives the object that represents the open repository instance or the workspace. |
Object | An object expression that evaluates to a VersionedRelationship object. |
This method returns a reference to either a Repository object or a Workspace object. If it returns a Workspace object, you are manipulating the item within the context of that workspace. If it returns a Repository object, you are manipulating the item not within the context of a workspace, but within the context of a shared Repository instance.