This document is archived and information here might be outdated.  Recommended version.


IClassSchemaEdit2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > IClassSchemaEdit2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IClassSchemaEdit2 Interface

Provides access to members that modify an object class's extension properties. Note: the IClassSchemaEdit2 interface has been superseded byIClassSchemaEdit3. Please consider using the more recent version.

Product Availability

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

When To Use

Use the IClassSchemaEdit2 interface when you want to modify the class extension properties of an object class that already has a class extension associated with it.

Members

Name Description
Method AlterAliasName The alias name of the object class.
Method AlterClassExtensionCLSID Changes the class extension COM class associated with this database class.
Method AlterClassExtensionProperties Changes the class extension properties associated with this object class.
Method AlterDefaultValue The default value of the object class field.
Method AlterDomain The default domain of the object class field.
Method AlterFieldAliasName The alias name of the object class field.
Method AlterFieldModelName The model name of the object class field.
Method AlterInstanceCLSID Changes the instance COM class associated with this database class.
Method AlterModelName The model name of the object class.
Method RegisterAsObjectClass Registers this class with the database, assigning it a class id and creating an object id column.

Inherited Interfaces

Interfaces Description
IClassSchemaEdit Provides access to member to modify an object class schema.

CoClasses that implement IClassSchemaEdit2

CoClasses and Classes Description
FeatureClass Esri Feature Class object.
ObjectClass Esri Object Class object.
RasterCatalog A collection of raster datasets in a Geodatabase table.
SchematicDiagramClass (esriSchematic) Schematic diagram class object.
SchematicElementClass (esriSchematic) Schematic element class object.

Remarks

When using the IClassSchemaEdit2 object to alter an object class' class schema, you should first acquire an exclusive schema lock using the ISchemaLock interface to be sure that another application or user does not have the class open while you are trying to modify its schema.

You can QI for the IClassSchemaEdit2 interface from the IObjectClass interface.

See Also

IPropertySet Interface | IObjectClassExtension Interface

.NET Samples

Timestamper class extension (Code Files: TimestampClassExtension)

.NET Related Topics

Creating class extensions