![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm having a performance problem with an Outlook AddIn. We need to find all
the MailItems – fast. The solution below is very slow due to “x as Outlook.Item” call. Is there a faster way to do this? IEnumerableOutlook.MailItem GetAllMail(Outlook.Folders folders) { foreach (Outlook.MAPIFolder f in folders) { foreach (var e in GetAllMail(f.Folders)) { yield return e; } foreach (var x in f.Items) { var e = x as Outlook.MailItem; if (e != null) { yield return e; } } } } |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a faster way to get to auto correct? Takes 4 steps now! | renee98277 | Outlook - General Queries | 1 | June 15th 08 04:29 AM |
Cannot display the folder. Microsoft Office Outlook cannot access thespecified folder location. | Boppy | Outlook - General Queries | 1 | December 19th 07 01:16 AM |
Access my saved forms faster | goss | Outlook - General Queries | 0 | April 18th 07 04:06 PM |
activate contact folder from public folder with "show this folder as email address book using a prf file | Frankie K. | Outlook - Using Contacts | 7 | July 25th 06 06:37 PM |
suggest: Color coding of email shortcut folders for faster filing | mrkie | Outlook - Installation | 0 | January 26th 06 04:31 PM |