This document is archived and information here might be outdated. Recommended version. |
Workspace Factory used to open toolbox workspaces.
Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.
Interfaces | Description |
---|---|
ISupportErrorInfo (esriSystem) | |
IToolboxWorkspaceFactory | Provides access to methods on the toolbox workspace factory object. |
IWorkspaceFactory (esriGeoDatabase) | Provides access to members that create and open workspaces and supply workspace factory information. |
IWorkspaceFactory2 (esriGeoDatabase) | Provides access to members that create and open workspaces and supply workspace factory information. |
A WorkspaceFactory is a dispenser of workspaces and allows a client to connect to a workspace specified by a set of connection properties. The ToolboxWorkspaceFactory object can be used to open a toolbox from a workspace.
A Workspace is a container of spatial and nonspatial datasets such as feature classes, raster datasets, tables and toolboxes. It provides methods to instantiate existing datasets and to create new datasets. Workspaces are classified into types specified by the esriWorkspaceType enumerator: esriFileSystemWorksapce, esriLocalDatabaseWorkspace, and esriRemoteDatabaseWorkspace.
A toolbox workspace can be either a esriFileSystemWorkspace, a esriLocalDatabaseWorkspace, or a esriRemoteDatabaseWorkspace. Toolboxes can exist in a folder, a personal geodatabase, a file geodatabase, or a enterprise geodatabase.