Meta Data Services Programming
Manipulating Workspaces
Operations on workspaces are supported at both the COM level and the Automation level. You can perform the following operations on a workspace.
To | Use |
---|---|
Enumerate the workspaces in a repository instance | The Workspaces collection of the IWorkspaceContainer interface that is exposed by the root repository object. |
Create a workspace | The CreateObject method of the IRepository interface that is exposed by the open repository instance. Use the Add method for the Workspaces collection to add the workspace to the collection of workspaces. |
Delete a workspace | The Delete method of the IRepositoryItem interface that is exposed by the workspace object. If you attempt to delete a workspace that contains checked out objects, the delete will fail. |
Retrieve the root object in a workspace | The RootObject property of the IRepository interface that is exposed by the workspace object. |
Enumerate the repository objects contained in a workspace | The Contents collection of the IWorkspace interface that is exposed by the workspace object. |
Enumerate the checked out objects in a workspace | The Checkouts collection of the IWorkspace interface that is exposed by the workspace object. |