Interface IObjectClass
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that return information about an object class.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("1AFCDB31-AC09-11D2-8A1E-006097AFF44E")]
public interface IObjectClass : IClass
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.
Properties
AliasName
The alias name of the object class.
string AliasName { get; }
Property Value
Remarks
Object classes in a geodatabase can have between one and three names. The name of the object class, which is the same as the name of the table in the DBMS in which the objects in the object class are stored, the alias name which the user can set for display purposes in end user applications. The third name is the model name which is a tool for developers of custom objects to use to guarantee the names of objects independent of the true name or alias name.
The AliasName property returns the alias name for the object class. If the object class has no alias name, then AliasName will return the name of the object class (fully qualified if on ArcSDE). The alias name can be modified using the IClassSchemEdit interface.
CLSID
UID CLSID { get; }
Property Value
EXTCLSID
UID EXTCLSID { get; }
Property Value
Extension
object Extension { get; }
Property Value
ExtensionProperties
IPropertySet ExtensionProperties { get; }
Property Value
Fields
IFields Fields { get; }
Property Value
HasOID
bool HasOID { get; }
Property Value
Indexes
IIndexes Indexes { get; }
Property Value
OIDFieldName
string OIDFieldName { get; }
Property Value
ObjectClassID
The unique ID for the object class.
int ObjectClassID { get; }
Property Value
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.
RelationshipClasses[esriRelRole]
The relationship classes in which this object class participates in for the specified role.
IEnumRelationshipClass RelationshipClasses[esriRelRole Role] { get; }
Parameters
RoleesriRelRole
Property Value
Remarks
Object classes in a geodatabase may participate in any number of relationships classes. The RelationshipClasses property allows you to get a list of those relationship classes that the object class participates in by what role it plays (origin, destination, or either) defined by the esriRelRole enumeration used when you call this property. This property returns a IEnumRelationshipClass interface which you can use to loop through those relationship classes that are returned.
Methods
AddField(IField)
void AddField(IField Field)
Parameters
FieldIField
AddIndex(IIndex)
void AddIndex(IIndex Index)
Parameters
IndexIIndex
DeleteField(IField)
void DeleteField(IField Field)
Parameters
FieldIField
DeleteIndex(IIndex)
void DeleteIndex(IIndex Index)
Parameters
IndexIIndex
FindField(string)
int FindField(string Name)
Parameters
Namestring