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

IObjectClassEvents.OnChange Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IO > IObjectClassEvents Interface > IObjectClassEvents.OnChange Event
ArcGIS Developer Help

IObjectClassEvents.OnChange Event

This event is fired when an object's attributes or geometry is updated.

[Visual Basic .NET]
Public Event OnChange As OnChangeEventHandler
public event OnChangeEventHandler OnChange
  IObject* obj
obj [in]

obj is a parameter of type IObject*

Product Availability

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


In the event that a feature should be deleted due to an OnChange event, it is not recommended that the event handler delete the feature itself. Instead, an exception should be thrown to the application, where it can be made responsible for deleting the feature.

The OnChange event is not fired during a Topology Validation for performance reasons as a large number of features may be changed during a Validate.  In addition, features may be changed many times.

See Also

IObjectClassEvents Interface