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


IFeatureClass.FeatureClassID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureClass Interface > IFeatureClass.FeatureClassID Property
ArcGIS Developer Help

IFeatureClass.FeatureClassID Property

The unique ID for the Feature Class.

[Visual Basic .NET]
Public ReadOnly Property FeatureClassID As Integer
[C#]
public int FeatureClassID {get;}
[C++]
HRESULT get_FeatureClassID(
  System.Int32* fID
);
[C++]
Parameters
fID [out, retval]

fID is a parameter of type long*

Product Availability

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

Remarks

This read-only property will return the unique identifier for this feature class. All feature classes inside Geodatabases have a unique ID. Coverage and Shapefile feature classes do not, so IFeatureClass::FeatureClassID will always return -1 for Coverage and Shapefile feature classes. Since IFeatureClass inherits from IObjectClass, you can also get the feature class ID from IObjectClass:: ObjectClassID.
 


See Also

IFeatureClass Interface | IObjectClass Interface