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


IObjectClass.ObjectClassID Property (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IO > IObjectClass Interface > IObjectClass.ObjectClassID Property
ArcGIS Developer Help

IObjectClass.ObjectClassID Property

The unique ID for the object class.

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

ObjectClassID is a parameter of type long*

Product Availability

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

Description

Returns the unique ID of the object class.

Remarks

Each feature class or table registered with the geodatabase is an object class. Object classes have a unique ID which distinguishes them from other object classes in the geodatabase. The ObjectClassID property returns this ID as a long. The object class ID is assigned by the system when the class is created, or registered with the geodatabase, it cannot be modified.

Those feature classes and tables that are in the database, but not registered with the geodatabase will always have an object class ID of -1.

See Also

IObjectClass Interface