Select to view content in your preferred language

IWorkspaceEditEvents versus IEditEvents

678
1
02-02-2011 09:06 AM
AndrewMcMenamin
Emerging Contributor
I would like to get confirmed that in ArcMap these 2 events are the same.
I am mainly interested in the Undo.
Does this fire at the successful end of the undo operation in both cases.
0 Kudos
1 Reply
NeilClemmons
Honored Contributor
No, they are not the same.  IEditEvents is the event interface for the ArcMap Editor.  It's events fire anytime the appropriate actions are executed using the Editor.  IWorkspaceEditEvents is the event interface for workspaces.  It's events fire anytime the appropriate actions are executed against the specific workspace it is being used in conjunction with.  If you are editing a particular workspace with the ArcMap Editor, then the events on the IEditEvents interface should fire the same as the events for IWorkspaceEditEvents setup to listen on that same workspace.  If you have IWorkspaceEditEvents setup to listen to workspace "A" and the Editor is set to edit workspace "B" then the two sets of events will not be synchronous as your listeners will not be listening to the same workspace.
0 Kudos