I’m writing an Outlook 2010 add-in that needs to perform different tasks depending on whether a message is going to be saved as a draft or discarded. I know that the value of Outlook.OlInspectorClose can be set programatically, but I’m unable to determine how to capture this variable when the user closes the inspector window.
Thanks.
InspectorEvents_10_CloseEventHandlerdoes not have any event arguments – so the SaveOption is not available. You could try checking the inspectorSavedflag to see if there are any pending changes that were not saved. You could tell if a new item was saved if it has an EntryID assigned.