ArcObjects Library Reference (GeoDatabase)  

IFeatureDatasetExtension Interface

Provides access to standard functionality found in all feature dataset extensions. Note: the IFeatureDatasetExtension interface has been superseded byIFeatureDatasetExtension2. Please consider using the more recent version.

Product Availability

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

Members

Description
Read-only property FeatureDataset Provides access to the feature dataset containing the extension.
Method Init Initialize the feature dataset extension.

CoClasses that implement IFeatureDatasetExtension

CoClasses and Classes Description
CadastralFabricFDExtension (esriGeoDatabaseExtensions) A container for describing this cadastral fabric's feature dataset extension properties.
NetworkDatasetFDExtension A container for describing this network dataset's feature dataset extension properties.
TerrainFeatureDatasetExtension (esriGeoDatabaseExtensions) ESRI TerrainFeatureDatasetExtension object.

Remarks

The IFeatureDatasetExtension interface is used to return a reference to the feature dataset associated with the extension. A reference to IFeatureDatasetExtension can be obtained by using the IFeatureDatasetExtensionContainer::FindExtension method with the appropriate esriDatasetType.

[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__IFeatureDatasetExtension(IFeatureDataset featureDataset, IDEDataset deDataset)
{
    // 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;
    IDataset dataset = datasetContainer2.CreateDataset(deDataset);
}

.NET Snippets

Open Network Dataset |

.NET Samples

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

.NET Related Topics

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