This event is fired when an relationship is deleted from the relationship class.
[Visual Basic .NET] Public Event OnDelete As OnDeleteEventHandler
[C#] public event OnDeleteEventHandler OnDelete
[C++] HRESULT OnDelete( IRelationship* rel );
rel is a parameter of type IRelationship
OnDelete is fired if you delete a simple or attributed relationship in one of the following ways:
- Call IRelationshipClass.DeleteRelationship
- Call IRow.Delete on an AttributedRelationship
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).