ArcObjects Library Reference (GeoDatabase)  

IRelationshipClassEvents.OnDelete Event

This event is fired when an relationship is deleted from the relationship class.

[Visual Basic .NET]
Public Event OnDelete As OnDeleteEventHandler
public event OnDeleteEventHandler OnDelete
  IRelationship* rel


rel [in]

  rel is a parameter of type IRelationship

Product Availability

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


OnDelete is fired if you delete a simple or attributed relationship in one of the following ways:

Note that one can also create and delete relationships implicitly by directly using put_Value to set the origin foreign key field inside the destination object in the case of a simple relationship class.   However, no events in IRelationshipClassEvents will be fired if the user does this (for eg. uses the Table document to directly set foreign key values in the destination object).


See Also

IRelationshipClassEvents Interface