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
[C#]
public IFeatureClass get_ClassByID (
    int ID
);
[C++]
HRESULT get_ClassByID(
  long ID,
  IFeatureClass** FeatureClass
);
[C++]

Parameters

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.

Remarks

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