IClassExtension Interface

Provides access to members that initialize and shutdown the class extension.

Description

Required interface for class extensions. Class extensions should implement behavior that pertains to a specific object or feature class in a geodatabase.

When To Use

IClassExtension should be implemented by all object class and feature class extensions.

Members

Name Description
Method Init Initializes the extension, passing in a reference to its class helper.
Method Shutdown Informs the extension that its class helper is going away.

IClassExtension.Init Method

Initializes the extension, passing in a reference to its class helper.

Public Sub Init ( _
    ByVal ClassHelper As IClassHelper, _
    ByVal ExtensionProperties As IPropertySet _
)
public void Init (
    IClassHelper ClassHelper,
    IPropertySet ExtensionProperties
);

Remarks

If a reference to the class is required by other class extension members, the class helper should be stored in a member variable. Storing an object or feature class directly within a class extension is strongly discouraged.

IClassExtension.Shutdown Method

Informs the extension that its class helper is going away.

Public Sub Shutdown ( _
)
public void Shutdown (
);

Remarks

Shutdown is called when the extension's class is cleared from the client's memory, or when the extension is removed from the class. Note that if a class is deleted from a geodatabase, it may remain in memory, so this should not be relied upon for behavior that should be triggered by a class' deletion.

Classes that implement IClassExtension

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close