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


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

IDatasetContainer2 Interface

Provides access to members that return datasets by name, ID and index. Note: the IDatasetContainer2 interface has been superseded by IDatasetContainer3. Please consider using the more recent version.

Product Availability

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

Members

Name Description
Method AddDataset Adds a dataset to the dataset collection.
Method CreateDataset Given a data element, create a dataset in this container.
Read-only property Dataset The dataset associated with the specified index value and dataset type.
Read-only property DatasetByName The dataset of the specified type with the specified name.
Read-only property DatasetCount The number of datasets of the specified type in this container.
Read-only property DatasetNames The names of all the datasets with the specified type.
Read-only property Datasets An enumerator over the datasets of the specified type.
Read-only property DatasetTypes The names of all the datasets with the specified type.

Inherited Interfaces

Interfaces Description
IDatasetContainer Provides access to adding datasets to the dataset container.

Classes that implement IDatasetContainer2

Classes Description
MosaicWorkspaceExtension (esriDataSourcesRaster) A mosaic dataset workspace extension.
RepresentationWorkspaceExtension Workspace extension to support representations in a geodatabase.
TerrainFeatureDatasetExtension (esriGeoDatabaseExtensions) Esri TerrainFeatureDatasetExtension object.

Remarks

The IDatasetContainer2 interface provides access to properties that return datasets by name, ID and index.  It also provides the mechanism for creating datasets through the user of the data element.  Use the DatasetTypes method to determine the supported datasets for the container. 

.NET Samples

Selection restriction evaluator Subset network evaluators Subset network evaluators