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


IDatasetContainer Interface (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > ID > IDatasetContainer Interface
ArcGIS Developer Help

IDatasetContainer Interface

Provides access to adding datasets to the dataset container.

Product Availability

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

Members

Name Description
Method AddDataset Adds a dataset to the dataset collection.

Classes that implement IDatasetContainer

Classes Description
FeatureDataset Esri Feature Dataset object.
MosaicWorkspaceExtension (esriDataSourcesRaster) A mosaic dataset workspace extension.
RepresentationWorkspaceExtension Workspace extension to support representations in a geodatabase.
Sde4Workspace (esriDataSourcesGDB) Esri SDE (4.x) Feature Database.
TerrainFeatureDatasetExtension (esriGeoDatabaseExtensions) Esri TerrainFeatureDatasetExtension object.
VersionedWorkspace VersionedWorkspace Object.
Workspace Workspace Object.

Remarks

The IDatasetContainer interface lets you move datasets between feature datasets and workspaces´┐Żboth objects implement the interface. It should only be used to move datasets between feature datasets and the workspace level within a single workspace, however; it cannot be used to transfer datasets from one workspace to another.

Note that when moving feature classes into a feature dataset, the spatial reference of the source feature class must match the spatial reference of the target feature dataset into which it is being moved.