IFeatureDatasetExtensionContainer Interface

Provides access to the collection of feature dataset extensions.

Members

Name 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.

IFeatureDatasetExtensionContainer.Extension Property

Provides access to a feature dataset extension.

Public Function get_Extension ( _
    ByVal Index As Integer _
) As IFeatureDatasetExtension
public IFeatureDatasetExtension get_Extension (
    int Index
);

Remarks

The Extension property returns feature dataset extensions at the specified index. The index is zero based and has a maximum value equal to the ExtensionCount - 1. Use this method to return a reference to the IDatasetContainer2 interface for working with and creating Network Datasets.

IFeatureDatasetExtensionContainer.ExtensionCount Property

The number of feature dataset extensions.

Public ReadOnly Property ExtensionCount As Integer
public int ExtensionCount {get;}

Remarks

ExtensionCount returns the number of feature dataset extensions associated with the feature dataset.

IFeatureDatasetExtensionContainer.FindExtension Method

Provides access to the feature dataset extension that supports the specified dataset type.

Public Function FindExtension ( _
    ByVal Type As esriDatasetType _
) As IFeatureDatasetExtension
public IFeatureDatasetExtension FindExtension (
    esriDatasetType Type
);

Remarks

The FindExtension method returns the feature dataset extension for the specified dataset type. Use this method to return a reference to the IDatasetContainer2 interface for working with and creating Network Datasets.

Classes that implement IFeatureDatasetExtensionContainer

Classes Description

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

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;

}

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