ArcObjects Library Reference (GeoDatabase)  

IFeatureWorkspaceManage2.GetObjectClassNameByID Method

Gets fully qualified feature class name by object class id.

[Visual Basic .NET]
Public Function GetObjectClassNameByID ( _
    ByVal ObjectClassID As Integer _
) As String
[C#]
public string GetObjectClassNameByID (
    int ObjectClassID
);
[C++]
HRESULT GetObjectClassNameByID(
  long ObjectClassID,
  BSTR* qname
);
[C++]

Parameters

ObjectClassID [in]   ObjectClassID is a parameter of type long qname [out, retval]   qname is a parameter of type BSTR

Product Availability

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

Remarks

The GetObjectClassNameByID method can be used to get the fully qualified name of a feature class or table that is registered as an ObjectClass with the geodatabase based on its ObjectClass ID. This name can then be used in a method such as IFeatureWorkspace::OpenFeatureClass, or IFeatureWorkspace::OpenTable to open the feature class or table.

See Also

IFeatureWorkspaceManage2 Interface | IObjectClass Interface