ArcObjects Library Reference (Geoprocessing)  

ToolboxWorkspaceFactory CoClass

Workspace Factory used to open toolbox workspaces.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows

Extended Error Information

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

Interfaces Description
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
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.

Remarks

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.

 

ToolboxWorkspaceFactory is the one and only instance of its class.