Occurs when the specified objects are about to be deleted.
event EventHandler<ObjectsManipulatingEventArgs> ObjectDeleting
Event ObjectDeleting As EventHandler(Of ObjectsManipulatingEventArgs)
The ObjectDeleting event handler receives an argument of the ObjectsManipulatingEventArgs type.
Raise this event before objects are marked as deleted from a dataset (see BaseObjectSpace.Delete). Use the handler's ObjectsManipulatingEventArgs.Objects parameter to get the object(s) to be deleted.
When implementing the IObjectSpace interface in the BaseObjectSpace class' descendant, you don't have to declare this event. It's declared within the BaseObjectSpace class. In addition, the BaseObjectSpace.OnObjectDeleting method raises this event. So, you should only invoke the OnObjectDeleting method before objects are marked as deleted.