Returns a collection of persistent objects that will be deleted when the current transaction is committed, including objects that will be deleted in the parent transaction(s), optionally.
ICollection GetObjectsToDelete( bool includeParent )
Function GetObjectsToDelete( includeParent As Boolean ) As ICollection
true, to include persistent objects that will be deleted in the parent transaction(s); otherwise, false.
The collection of persistent objects that will be deleted when the current transaction is committed.
When an object is deleted, it's not deleted immediately from the database. It's marked as an object to delete and removed from the database the next time the IObjectSpace.CommitChanges method is called.
The GetObjectsToDelete method is intended to provide a collection of objects that are marked as deleted in the current transaction.