Interface IFeatureDatasetExtensionContainer

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to the collection of feature dataset extensions.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("23869B3A-1AD9-468B-9E52-6FDC3C261FDA")]
public interface IFeatureDatasetExtensionContainer

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







Properties

Extension[int]

Provides access to a feature dataset extension.

IFeatureDatasetExtension Extension[int Index] { get; }

Parameters

Index int

Property Value

IFeatureDatasetExtension

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.

ExtensionCount

The number of feature dataset extensions.

int ExtensionCount { get; }

Property Value

int

Remarks

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

Methods

FindExtension(esriDatasetType)

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

IFeatureDatasetExtension FindExtension(esriDatasetType Type)

Parameters

Type esriDatasetType

Returns

IFeatureDatasetExtension

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.