This document is archived and information here might be outdated.  Recommended version.


IWorkspace Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspace Interface
ArcGIS Developer Help

IWorkspace Interface

Provides access to members that have information about the workspace.

Product Availability

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

Members

Name Description
Read-only property ConnectionProperties The connection properties of the workspace.
Read-only property DatasetNames The DatasetNames in the workspace.
Read-only property Datasets The datasets in the workspace.
Method ExecuteSQL Executes the specified SQL statement.
Method Exists Checks if the workspace exists.
Method IsDirectory TRUE if the workspace is a file system directory.
Read-only property PathName The file system full path of the workspace.
Read-only property Type The Type of the Workspace.
Read-only property WorkspaceFactory The factory that created the workspace.

Classes that implement IWorkspace

Classes Description
AMSWorkspace (esriTrackingAnalyst) Controls the Tracking Server workspace COM object's properties.
NetCDFWorkspace (esriDataSourcesNetCDF) The NetCDF workspace object.
RasterWorkspace (esriDataSourcesRaster) The raster workspace object.
Sde3Workspace (esriDataSourcesGDB) Esri SDE (3.x) Feature Database.
Sde4Workspace (esriDataSourcesGDB) Esri SDE (4.x) Feature Database.
SqlWorkspace (esriDataSourcesGDB) Sql workspace
VersionedWorkspace VersionedWorkspace Object.
Workspace Workspace Object.

Remarks

A Workspace is a container of spatial and non-spatial datasets such as feature classes, raster datasets, and tables. It provides methods to instantiate existing datasets and to create new datasets. Workspaces are classified into types specified by the esriWorkspaceType enumerator; FileSystemWorkspace, LocalDatabaseWorkspace, and RemoteDatabaseWorkspace.

Shapefiles and ArcGIS for Desktop Advanced workspaces are examples of FileSystemWorkspace. A personal geodatabase stored in an Access or a File Geodatabase is an example of a LocalDatabaseWorkspace. A geodatabase stored in an RDBMS such as Oracle, DB2, SqlServer, or Informix and accessed via ArcSDE is an example of a RemoteDatabaseWorkspace.

The WorkspaceName for a workspace can be persisted, for example, in a map document. An application can call the Open method on the workspace name after loading it from persistent storage in order to connect to and get an object reference to the workspace. A WorkspaceName name object can be returned from a workspace through the use of IDataset.FullName.

The IWorkspace interface provides methods for accessing various properties of a workspace, such as its connection properties, and the collection of datasets it contains.

See Also

IWorkspaceFactory Interface | IWorkspaceName Interface

.NET Samples

Closest facility solver Mosaic raster datasets to a file raster format Create a Function Raster dataset Create a Mosaic dataset Create a custom NoData pixel filter Create a custom raster function Create a custom raster function Create a custom raster type Create a custom raster type from the ground up for DMCII data Create a custom raster type from the ground up for DMCII data Get and set key properties on a mosaic dataset Publish an image service and set configurations Location-allocation solver Create an NDVI custom raster function Create an NDVI custom raster function Origin-destination cost matrix solver Extending the replication synchronization process Extending the replication synchronization process RSS weather GraphicTracker RSS weather layer RSS weather layer Implementing associations between GIS features and schematic features Implementing the ISchematicRulesHelper to easily develop a custom schematic rule Utility wizard for basic schematic datasets configuration Implementing a schematic digitizing tool Customizing schematic feature removal events Service area solver Simple point plug-in data source Add and symbolize a historical temporal layer in ArcMap Play back tracking data Timestamper class extension Vehicle routing problem solver