The unique ID for the Feature Class.
[Visual Basic 6.0] Property FeatureClassID As Long
[Visual Basic .NET] Public ReadOnly Property FeatureClassID As Integer
[C#] public int FeatureClassID {get;}
[Java] public int getFeatureClassID() throws IOException, AutomationException
[C++]
HRESULT get_FeatureClassID(
long* FID
);
Parameters
FID [out, retval]
FID is a parameter of type long
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 featureclasses 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.
The following example shows how you can get the feature class ID.
Dim pFeatcls As IFeatureClass
Dim pFeatLayer As IFeatureLayer
Dim pDoc As IMxDocument
Dim pMap As IMap
Set pDoc = ThisDocument
Set pMap = pDoc.Maps.Item(0)
Set pFeatLayer = pMap.Layer(0)
Set pFeatcls = pFeatLayer.FeatureClass
Dim lFId As Long
lFId = pFeatcls.FeatureClassID
IFeatureClass Interface | IObjectClass Interface