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

IDataset.Workspace Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDataset Interface > IDataset.Workspace Property
ArcGIS Developer Help

IDataset.Workspace Property

The workspace containing this dataset.

[Visual Basic .NET]
Public ReadOnly Property Workspace As IWorkspace
public IWorkspace Workspace {get;}
HRESULT get_Workspace(
  IWorkspace** database
database [out, retval]

database is a parameter of type IWorkspace**

Product Availability

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


The Workspace property returns the containing workspace for this dataset.

Errors Returned


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

See Also

IDataset Interface

.NET Samples

Timestamper class extension