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


IDatasetContainer2 Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IDatasetContainer2 Interface

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

Product Availability

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

Members

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.

CoClasses that implement IDatasetContainer2

CoClasses and Classes Description
CadastralFabricFDExtension (esriGeoDatabaseExtensions) A container for describing this cadastral fabric's feature dataset extension properties.
CadastralWorkspaceDatasetExtension (esriGeoDatabaseExtensions) A container for describing this cadastral fabric's workspace extension properties.
MosaicWorkspaceExtension (esriDataSourcesRaster) A mosaic dataset workspace extension.
NetworkDatasetFDExtension A container for describing this network dataset's feature dataset extension properties.
NetworkDatasetWorkspaceExtension A container for describing this network dataset's workspace extension properties.
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 (Code Files: SelectionRestrictionEvaluator) | Subset network evaluators (Code Files: FilterSubsetEvaluator ScaleSubsetEvaluator)

.NET Related Topics

How to create a multimodal network dataset | How to create a network dataset