Workspace Context
When you operate within a workspace, the workspace provides a specific context for your work. That context includes both the Versions collection and the Checkouts collection for that workspace. If an object version is not part of either of these collections, it is not part of the context for that workspace.
The behavior of a repository method can vary depending on whether you invoked the method from within the context of a workspace or from within the more general context of a repository instance. For example, if you materialize the ObjectInstances collection for a class, the collection can consist of two different sets of items:
- If you are operating within the context of a workspace, the collection contains one item for each object in that workspace conforming to that class.
- If you are operating within the more general context of a repository instance, the collection contains one item for each object in the repository conforming to that class.
Similarly, if you invoke get_Object, two different things can happen:
- If you are operating within the context of a workspace, the repository engine follows a resolution strategy to yield the version of the object present in the workspace.
- If you are operating within the more general context of a repository instance, the resolution strategy yields the latest version of the object.
See Also
Establishing Workspace Context