ArcObjects Library Reference (GeoDatabase)  

IObjectClass Interface

Provides access to members that return information about an object class.

Product Availability

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

When To Use

The IObjectClass interface is the main interface used to get the properties of an object class in a geodatabase. An object class is a feature class or table that has been registered with the geodatabase. For example, you can use the IObjectClass interface to get a list of all the relationship classes in which an object class participates.

Members

Description
Method AddField Adds a field to this object class.
Method AddIndex Adds an index to this object class.
Read-only property AliasName The alias name of the object class.
Read-only property CLSID The GUID for the COM Class (CoClass) corresponding to instances of this object class.
Method DeleteField Deletes a field from this object class.
Method DeleteIndex Deletes an index from this object class.
Read-only property EXTCLSID The GUID for the COM Class (CoClass) corresponding to the class extension for this object class.
Read-only property Extension The extension for this object class.
Read-only property ExtensionProperties The extension properties for this object class.
Read-only property Fields The fields collection for this object class.
Method FindField The index of the field with the specified name.
Read-only property HasOID Indicates if the class has an object identity (OID) field.
Read-only property Indexes The indexes collection for this object class.
Read-only property ObjectClassID The unique ID for the object class.
Read-only property OIDFieldName The name of the field corresponding to the OID.
Read-only property RelationshipClasses The relationship classes in which this object class participates in for the specified role.

Inherited Interfaces

Interfaces Description
IClass Provides access to members that return information about and manage the class.

CoClasses that implement IObjectClass

CoClasses and Classes Description
FeatureClass ESRI Feature Class object.
NAClass (esriNetworkAnalyst) Holds features used as input and generated as output during network analysis.
ObjectClass ESRI Object Class object.
RasterBand (esriDataSourcesRaster) A representation of a single band of a raster dataset on disk.
RasterCatalog A collection of raster datasets in a Geodatabase table.
RasterLayer (esriCarto) Raster layer source and display options.
RelQueryTable An object that joins two datasets based on common data values.
RouteEventSource (esriLocation) Route event source object.
SchematicDiagramClass (esriSchematic) Schematic diagram class object.
SchematicElementClass (esriSchematic) Schematic element class object.
SchematicInMemoryFeatureClass (esriSchematic) Schematic in memory feature class object.
TemporalFeatureClass (esriTrackingAnalyst) Controls settings for the temporal feature class.
TemporalRecordSet (esriTrackingAnalyst) Defines the COM coclass for the TemporalRecordSet COM object.
XYEventSource XY event source object.

Remarks

All object classes support the IObjectClass interface and this interface inherits from the IClass interface. The CLSID, EXTCLSID, and Extension for an ObjectClass may be obtained via the corresponding methods inherited from IClass.

For programming convenience, pre-existing tables in the host RDBMS also support the IObjectClass interface even if they have not been registered with the Geodatabase. Such tables can be distinguished from registered object classes because they return an ObjectClassID of -1 and return False to the HasOID method. New object classes in a Geodatabase that are created using the CreateTable method on the IFeatureWorkspace interface are automatically registered with the Geodatabase and assigned an object class ID.

If no AliasName has been defined for an object class, then the AliasName is equal to the Name.

See Also

IObjectClass Interface | IClass Interface | IClassSchemaEdit Interface

.NET Samples

Curve conversion add-in (Code Files: CurveConversionDockWin) | Implementing a schematic layout algorithm and its layout property page (Code Files: TranslateTree) | Tabbed feature inspector (Code Files: AddEXTCLSID) | Timestamper class extension (Code Files: TimestampPropertyPage) |

.NET Related Topics

Creating class extensions | Creating relationship classes | Creating subtypes | Creating tables | Geodatabase | How to create a dynamic geocoded feature class | Listening to object class events | Using schema locks |