IFeatureDatasetExtension Interface

Provides access to standard functionality found in all feature dataset extensions.

Members

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

IFeatureDatasetExtension.FeatureDataset Property

Provides access to the feature dataset containing the extension.

Public ReadOnly Property FeatureDataset As IFeatureDataset
public IFeatureDataset FeatureDataset {get;}

Remarks

The FeatureDataset method returns a reference to the feature dataset associated with the FeatureDatasetExtension.

IFeatureDatasetExtension.Init Method

Initialize the feature dataset extension.

Public Sub Init ( _
    ByVal Dataset As IFeatureDataset _
)
public void Init (
    IFeatureDataset Dataset
);

Remarks

The Init method is for internal use only.

Classes that implement IFeatureDatasetExtension

Classes Description

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.

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);

}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.