![]() |
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 |
#2
|
|||
|
|||
![]()
Before you create the store, iterate all open stores and get their StoreIDs.
Then after you create the store, use Namespace.Folders.GetLast to get the last store. Compare its StoreID with those that you collected earlier. If it matches none of them, then you know it's the store you added. If it does match, repeat Folders.GetPrevious until you find one with no match. At that point, you can change its display name to make it easier to locate in future sessions. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Anyone for Coffee?" wrote in message ... Using C# I have a valid NameSpaceClass. I use AddStore (path) to add a store. How can I then go and find the store? I can look in the NameSpaceClass.Folders Collection and search for it, but how do I KNOW I've found the right store? By default when I add a store it seems to take the name "Personal Folder", but what if there is already a "Personal Folder"? It seems the AddStore method should return the Stoe that was created (or found). Thanks, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
IMAP store cannot be created | Ovi | Outlook - Installation | 0 | September 14th 06 07:21 PM |
O2K7: Don't index store ? | Michael Tissington | Add-ins for Outlook | 7 | June 19th 06 06:09 PM |
Importing old store files | No One | Outlook Express | 5 | April 15th 06 03:51 AM |
store Temporaryvalues in C# | safs | Outlook - Using Contacts | 0 | March 9th 06 09:33 AM |
"The specified default store could not be opened. Please make sure you can access your default store and try again." | [email protected] | Outlook - General Queries | 2 | February 17th 06 04:58 PM |