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

IClassSchemaEdit.AlterClassExtensionCLSID Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > IClassSchemaEdit Interface > IClassSchemaEdit.AlterClassExtensionCLSID Method
ArcGIS Developer Help

IClassSchemaEdit.AlterClassExtensionCLSID Method

Changes the class extension COM class associated with this database class.

[Visual Basic .NET]
Public Sub AlterClassExtensionCLSID ( _
    ByVal ClassExtensionCLSID As UID, _
    ByVal classExtensionProperties As IPropertySet _
public void AlterClassExtensionCLSID (
    UID ClassExtensionCLSID,
    IPropertySet classExtensionProperties
HRESULT AlterClassExtensionCLSID(
  IUID* ClassExtensionCLSID,
  IPropertySet* classExtensionProperties
ClassExtensionCLSID [in]

ClassExtensionCLSID is a parameter of type IUID* classExtensionProperties [in]
classExtensionProperties is a parameter of type IPropertySet*

Product Availability

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


The AlterClassExtensionCLSID method is used to change the class extension for an object class in the Geodatabase. For example, you may have a class to which you want to associate a class extension that you have developed. You use the AlterClassExtensionCLSID to do so.


AlterClassExtensionCLSID will try to instantiate the object for the class extension that you provide. If it fails to instantiate it, the method will fail. Therefore, you must have the DLL which has the implementation of your class extension registered on your system before you call AlterClassExtensionCLSID.

Before you QI for AlterClassExtensionCLSID, you will have had to open the object class. So, if this fails because you no longer have the DLL registered on your system for a class extension that is already associated with the class, then you must use the IFeatureWorkspaceSchemaEdit interface to alter the class extension CLSID.

See Also

IClassSchemaEdit Interface | IFeatureWorkspaceSchemaEdit Interface | IObjectClassExtension Interface

.NET Samples

Tabbed feature inspector Tabbed feature inspector