ArcObjects Library Reference (GeoDatabase)  

IRelatedObjectEvents Interface

Provides access to events that occur when related objects change, move or rotate.

Product Availability

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

Members

Description
Method RelatedObjectChanged Notifies this object that a related object changed.
Method RelatedObjectMoved Notifies this object that a related object moved.
Method RelatedObjectRotated Notifies this object that a related object rotated.
Method RelatedObjectSetMoved Notifies this object that a set of objects with relationships to the input set of objects moved.
Method RelatedObjectSetRotated Notifies this object that a set of objects with relationships to the input set of objects rotated.

CoClasses that implement IRelatedObjectEvents

CoClasses and Classes Description
AnnotationFeature (esriCarto) An ESRI annotation feature.
ComplexEdgeFeature ESRI Complex edge geometric network feature object.
ComplexJunctionFeature ESRI Complex junction geometric network feature.
CoverageAnnotationFeature ESRI Coverage Annotation Feature.
DimensionFeature (esriCarto) ESRI Dimension Feature class.
Feature ESRI Feature.
GeocodedFeature (esriLocation) A feature created by a locator.
NALocationFeature (esriNetworkAnalyst) A network location which can be used like a feature or a row.
NALocationObject (esriNetworkAnalyst) A network location which can be used like a row.
NALocationRangesFeature (esriNetworkAnalyst) A container of NALocationRanges which can be used like a feature or a row.
NALocationRangesObject (esriNetworkAnalyst) A container of NALocationRanges which can be used like a row.
NATraversalResultElement (esriNetworkAnalyst) An individual element in a traversal result.
Object ESRI Object object.
RasterCatalogItem Raster Catalog Feature Class.
Row ESRI Row object.
SchematicDiagram (esriSchematic) A schematic diagram object.
SchematicInMemoryFeatureLink (esriSchematic) Schematic in memory feature link object.
SchematicInMemoryFeatureNode (esriSchematic) Schematic in memory feature node object.
SchematicInMemoryFeatureNodeOnLink (esriSchematic) Schematic in memory feature node on link object.
SchematicInMemoryFeatureSubLink (esriSchematic) Schematic in memory feature sublink object.
SchematicLink (esriSchematic) A schematic link object.
SchematicNode (esriSchematic) A schematic node object.
SchematicNodeOnLink (esriSchematic) A schematic node-on-link object.
SchematicSubLink (esriSchematic) A schematic sublink object.
SimpleEdgeFeature ESRI Geometric network simple edge feature object.
SimpleJunctionFeature ESRI Geometric network simple junction feature object.
TopologyErrorFeature ESRI Topology Error Feature object.

Remarks

The IRelatedObjectEvents interface is relevant only to developers of custom objects and features. It is similar to IRowEvents except that the methods are called by the geodatabase in response to events on a related object.

A custom object can implement this interface in order to respond to these events, for example, if a change in the attribute of a related object needs to trigger a change in the attributes of this object.

RelatedObjectMoved and RelatedObjectRotated are currently reserved.  A custom feature implementing this interface must include these two methods, but since they will not be called, the methods should remain empty.  Feature movement and rotation triggers the RelatedObjectSetMoved and RelatedObjectSetRotated methods, where functionality should be defined.

In most cases, a class extension that implements the IRelatedObjectClassEvents2 interface should be used instead of a custom feature that implements this interface, as class extensions are generally more stable and more efficient.