ArcObjects Library Reference (GeoDatabase)  

IFeatureDatasetExtensionContainer Interface

Provides access to the collection of feature dataset extensions.

Product Availability

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

Members

Description
Read-only property Extension Provides access to a feature dataset extension.
Read-only property ExtensionCount The number of feature dataset extensions.
Method FindExtension Provides access to the feature dataset extension that supports the specified dataset type.

CoClasses that implement IFeatureDatasetExtensionContainer

CoClasses and Classes Description
FeatureDataset Esri Feature Dataset object.

Remarks

The IFeatureDatasetExtensionContainer interface provides access to the feature dataset extensions associated with a container.  The interface contains members that facilitate finding and using these extensions.  The IFeatureDatasetExtensionContainer interface should only be used with datasets contained within a Geodatabase. To access file based datasets, see the IWorkspaceExtensionManager

[C#]

The following code demonstrates how to get a reference to the IFeatureDatasetExtension in order to create a network dataset.  It assumes you have a reference to the feature dataset (pFDS) in which the network dataset will be created and populated data element (pDENDS).

public void esriGeoDatabase__IFeatureDatasetExtensionContainer(IFeatureDataset featureDataset)
{
    // Cast to the IFeatureDatasetExtensionContainer interface
    IFeatureDatasetExtensionContainer featuredatasetextensionContainer = (IFeatureDatasetExtensionContainer)featureDataset;
   
    // Get a reference to the feature dataset extension for network datasets
    IFeatureDatasetExtension featuredatasetExtension = featuredatasetextensionContainer.FindExtension(esriDatasetType.esriDTNetworkDataset);
    IDatasetContainer2 datasetContainer2 = (IDatasetContainer2)featuredatasetExtension;
}

.NET Snippets

Open Network Dataset

.NET Samples

Closest facility solver (Code Files: frmClosestFacilitySolver) | Service area solver (Code Files: frmServiceAreaSolver) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Vehicle routing problem solver (Code Files: frmVRPSolver) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Route layer (Code Files: Program)

.NET Related Topics

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