Workspaces and Repository Instances
In many respects, operating within a workspace is just like operating within the Repository itself: both the Workspace class and the Repository class implement the IRepository2 interface. There are, however, some important differences:
-
Some methods exposed by the IRepository2 interface apply only to Repository instances, not to workspaces. You cannot call Open or Create on a workspace object.
-
Unlike Repository connections, workspaces are named persistent Repository objects. Thus, workspaces can be created, used across multiple sessions, and deleted, if necessary.