IWorkspace Interface

See Also

A workspace is a secluded area of the Repository within which you can operate on tool data in isolation from other Repository activity. The IWorkspace interface provides methods for operating on workspaces.

When to Use

Use the IWorkspace interface to manage the object versions present in the workspace, the object versions checked out to the workspace, and to manage the workspace containers in which the workspace is present. (In this release, there is only one workspace container, the Root Object.)

Methods

IUnknown Method Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.

IDispatch Method Description
GetIDsOfNames Maps a single member and a set of argument names to a corresponding set of dispatch identifiers.
GetTypeInfo Retrieves a type information object, which can be used to get the type information for an interface.
GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Invoke Provides access to properties and methods exposed by an Automation object.

IRepositoryDispatch Method Description
get_Properties Retrieves the IReposProperties interface pointer. The IReposProperties interface provides access to the Properties collection.

IWorkspace Method Description
get_Checkouts Returns the collection of object versions checked out to the workspace.
get_Contents Returns the collection of object versions present in the workspace.

Collections

Collection Description
Containers The collection of objects containing the current workspace.