com.esri.arcgis.geodatabase
Interface IDatasetContainer

All Superinterfaces:
Serializable
All Known Subinterfaces:
IDatasetContainer2, IDatasetContainer3
All Known Implementing Classes:
CadastralFabricFDExtension, CadastralWorkspaceDatasetExtension, FeatureDataset, IDatasetContainer2Proxy, IDatasetContainer3Proxy, IDatasetContainerProxy, NetworkDatasetFDExtension, NetworkDatasetWorkspaceExtension, RepresentationWorkspaceExtension, Sde4Workspace, TerrainFeatureDatasetExtension, VersionedWorkspace, Workspace

public interface IDatasetContainer
extends Serializable

Provides access to adding datasets to the dataset container.

Superseded By

IDatasetContainer3

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void addDataset(IDataset datasetToAdd)
          Adds a dataset to the dataset collection.
 

Method Detail

addDataset

void addDataset(IDataset datasetToAdd)
                throws IOException,
                       AutomationException
Adds a dataset to the dataset collection.

Remarks

When calling this method on feature datasets, both the XY and Z spatial reference systems of the dataset (if applicable) must match those of the feature dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
datasetToAdd - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.