N
Nico
Hello
I have a problem for getting the Appointment Item that has been remove
because there is no parameter allowed in the method call after an
ItemsEvents_ItemRemoveEventHandler. With ItemsEvents_ItemAddEventHandler and
ItemsEvents_ItemChangeEventHandler event I can find the AppointItem that has
been change or modify but how to find it with a ItemRemoveEventHandler event
?
Here is my code :
public void test(){
_application = new Outlook.Application();
_nameSpace = _application.GetNamespace("MAPI");
_mfCalendar =
_nameSpace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
ItemsEvents_ItemRemoveEventHandler iaehRemove =
new
ItemsEvents_ItemRemoveEventHandler(this.AppointmentItemRemove);
_itemsCalendar2.ItemRemove += iaehRemove;
}
public void AppointmentItemRemove()
{
// how to find here which Appointment item has been deleted ?
}
PS : I use Visual Studio 2005 with C#.
Thanks in advance
I have a problem for getting the Appointment Item that has been remove
because there is no parameter allowed in the method call after an
ItemsEvents_ItemRemoveEventHandler. With ItemsEvents_ItemAddEventHandler and
ItemsEvents_ItemChangeEventHandler event I can find the AppointItem that has
been change or modify but how to find it with a ItemRemoveEventHandler event
?
Here is my code :
public void test(){
_application = new Outlook.Application();
_nameSpace = _application.GetNamespace("MAPI");
_mfCalendar =
_nameSpace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
ItemsEvents_ItemRemoveEventHandler iaehRemove =
new
ItemsEvents_ItemRemoveEventHandler(this.AppointmentItemRemove);
_itemsCalendar2.ItemRemove += iaehRemove;
}
public void AppointmentItemRemove()
{
// how to find here which Appointment item has been deleted ?
}
PS : I use Visual Studio 2005 with C#.
Thanks in advance