ArcObjects Library Reference (GeoDatabase)  

IFeatureClassContainer.ClassByID Property

The FeatureClass with the specified ID.

[Visual Basic .NET]
Public Function get_ClassByID ( _
    ByVal ID As Integer _
) As IFeatureClass
public IFeatureClass get_ClassByID (
    int ID
HRESULT get_ClassByID(
  long ID,
  IFeatureClass** FeatureClass


ID [in]   ID is a parameter of type long FeatureClass [out, retval]

  FeatureClass is a parameter of type IFeatureClass

Product Availability

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


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

See Also

IFeatureClassContainer Interface

.NET Related Topics

Adding and working with connectivity rules in a geometric network