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


IDataset.Workspace Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IDataset.Workspace Property

The workspace containing this dataset.

[Visual Basic .NET]
Public ReadOnly Property Workspace As IWorkspace
[C#]
public IWorkspace Workspace {get;}
[C++]
HRESULT get_Workspace(
  IWorkspace** database
);
[C++]

Parameters database [out, retval]
database is a parameter of type IWorkspace

Product Availability

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

Description

The Workspace property returns the containing workspace for this dataset.

Errors Returned

FDO_E_NOT_SUPPORTED

Will be returned if this property is accessed on a workspace object.

See Also

IDataset Interface

.NET Snippets

Get Path for a Layer

.NET Samples

Timestamper class extension (Code Files: TimestampClassExtension)

.NET Related Topics

Assigning domains to fields | Cartographic representations | Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Creating feature classes | Geodatabase | GeoDatabaseUI | How to create an edit session | How to load a raster dataset to the raster field in a feature class