ArcObjects Library Reference (GeoDatabase)  

IFeatureWorkspaceManage.IsRegisteredAsObjectClass Method

Checks if an object is registered as an object class.

[Visual Basic .NET]
Public Function IsRegisteredAsObjectClass ( _
    ByVal Name As String _
) As Boolean
[C#]
public bool IsRegisteredAsObjectClass (
    string Name
);
[C++]
HRESULT IsRegisteredAsObjectClass(
  BSTR Name,
  VARIANT_BOOL* isRegistered
);
[C++]

Parameters

Name [in]   Name is a parameter of type BSTR isRegistered [out, retval]   isRegistered is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

IsRegisteredAsObjectClass indicates if an object in the database is referenced in the Geodatabase system tables. A table created using SQL, or an SDE layer created using the ArcSDE administration commands, or other ArcSDE client software are examples of objects that are not registered with the Geodatabase. These tables will have an ObjectClassID of -1.

You can use the RegisterAsObjectClass method on IClassSchemaEdit to register an object with the Geodatabase.

See Also

IFeatureWorkspaceManage Interface