This document is archived and information here might be outdated.  Recommended version.

IFeatureClassContainer.ClassByID Property (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureClassContainer Interface > IFeatureClassContainer.ClassByID Property
ArcGIS Developer Help

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