This document is archived and information here might be outdated. Recommended version. |
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
);
[C++] Parameters rel [in]
rel is a parameter of type IRelationship*
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).