IWorkspace Interface

Meta Data Services Programming

Meta Data Services Programming

IWorkspace Interface

A workspace is a subset 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 Microsoft® SQL Server™ 2000 Meta Data Services, 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.

See Also

Workspace Class