ArcObjects Library Reference (GeoDatabase)  

IFeatureClassContainer Interface

Provides access to members that return feature classes by name, ID and index.

Product Availability

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

Members

Description
Read-only property Class The FeatureClass associated with the specified index value.
Read-only property ClassByID The FeatureClass with the specified ID.
Read-only property ClassByName The FeatureClass with the specified name.
Read-only property ClassCount The number of FeatureClasses in this container.
Read-only property Classes An enumerator over the FeatureClasses.

CoClasses that implement IFeatureClassContainer

CoClasses and Classes Description
FeatureDataset Esri Feature Dataset object.
GeometricNetwork Esri Geometric Network object.
NetworkDataset A container for querying information about a network dataset.
Topology Esri Topology object.

Remarks

The IFeatureClassContainer interface provides access to feature classes.  For feature datasets, it can be seen as an alternative to the functionality available on other objects.  Also, since IFeatureClassContainer is implemented by IGeometricNetwork and ITopology, it can be used to return the feature classes which participate in those types of datasets. 

There is no guarentee on the order that the feature classes will be returned for IFeatureClassContainer::Classes.

Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.

 

.NET Snippets

Set Data Source

.NET Samples

Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Implementing associations between GIS features and schematic features (Code Files: ElementFeatureAssociation) | ArcGIS Network Analyst extension barrier location editor (Code Files: EditorForm)

.NET Related Topics

Adding and working with connectivity rules in a geometric network | Geodatabase