M
maxim
Hi,
I'm developing a C# based Outlook add-in using VSTO 2005. This add-in
collects information from multiple Mail items, so I've a simple code like
this:
Outlook.MAPIFolder inbox =
this.Application.ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
Outlook.Items items = inbox.Items;
foreach(Outlook.MailItem mailItem in items) {
resultList.Add(new FoundMessageItem(mailItem)); //Takes some fields from
the mailItem like subject, sender, recipient
}
Running this loop on even quite small mailbox (about 100 items) takes a long
time (about 10-12 seconds) which is unexptable in my case. What can be done
to improve the performance?
Thanks in advance,
Maxim
I'm developing a C# based Outlook add-in using VSTO 2005. This add-in
collects information from multiple Mail items, so I've a simple code like
this:
Outlook.MAPIFolder inbox =
this.Application.ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
Outlook.Items items = inbox.Items;
foreach(Outlook.MailItem mailItem in items) {
resultList.Add(new FoundMessageItem(mailItem)); //Takes some fields from
the mailItem like subject, sender, recipient
}
Running this loop on even quite small mailbox (about 100 items) takes a long
time (about 10-12 seconds) which is unexptable in my case. What can be done
to improve the performance?
Thanks in advance,
Maxim