IFeatureClassContainer Interface

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

Members

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

IFeatureClassContainer.Class Property

The FeatureClass associated with the specified index value.

Public Function get_Class ( _
    ByVal ClassIndex As Integer _
) As IFeatureClass
public IFeatureClass get_Class (
    int ClassIndex
);

IFeatureClassContainer.ClassByID Property

The FeatureClass with the specified ID.

Public Function get_ClassByID ( _
    ByVal ID As Integer _
) As IFeatureClass
public IFeatureClass get_ClassByID (
    int ID
);

Remarks

Each object class in a geodatabase has a unique ID accessible via the ObjectClassID method in theIObjectClass interface or the FeatureClassIDmethod in theIFeatureClass interface. The ClassByID method finds a feature class in a feature dataset given its object class ID.

IFeatureClassContainer.ClassByName Property

The FeatureClass with the specified name.

Public Function get_ClassByName ( _
    ByVal Name As String _
) As IFeatureClass
public IFeatureClass get_ClassByName (
    string Name
);

IFeatureClassContainer.ClassCount Property

The number of FeatureClasses in this container.

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

IFeatureClassContainer.Classes Property

An enumerator over the FeatureClasses.

Public ReadOnly Property Classes As IEnumFeatureClass
public IEnumFeatureClass Classes {get;}

Remarks

There is no guarentee on the order that the feature classes will be returned.

Classes that implement IFeatureClassContainer

Classes Description

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.


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