This document is archived and information here might be outdated. Recommended version. |
Provides access to members that return information about an object class.
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.
Name | Description | |
---|---|---|
AddField | Adds a field to this object class. | |
AddIndex | Adds an index to this object class. | |
AliasName | The alias name of the object class. | |
CLSID | The GUID for the COM Class (CoClass) corresponding to instances of this object class. | |
DeleteField | Deletes a field from this object class. | |
DeleteIndex | Deletes an index from this object class. | |
EXTCLSID | The GUID for the COM Class (CoClass) corresponding to the class extension for this object class. | |
Extension | The extension for this object class. | |
ExtensionProperties | The extension properties for this object class. | |
Fields | The fields collection for this object class. | |
FindField | The index of the field with the specified name. | |
HasOID | Indicates if the class has an object identity (OID) field. | |
Indexes | The indexes collection for this object class. | |
ObjectClassID | The unique ID for the object class. | |
OIDFieldName | The name of the field corresponding to the OID. | |
RelationshipClasses | The relationship classes in which this object class participates in for the specified role. |
Interfaces | Description |
---|---|
IClass | Provides access to members that return information about and manage the class. |
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. |
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.
Object Class | IObjectClass Interface | ObjectClass Class | IClass Interface | IClassSchemaEdit Interface