Missing Store ID parameter for NameSpace.GetAddressEntryFromID()?

J

Jeff

Why doesn't NameSpace.GetAddressEntryFromID() (http://
msdn.microsoft.com/en-us/library/bb175345.aspx) have a store ID
parameter like NameSpace.GetItemFromID() (http://msdn.microsoft.com/en-
us/library/bb219902.aspx)?

Should I infer something about address entries based on this
discrepancy?

Thanks,
Jeff
 
D

Dmitry Streblechenko

Because address entries do not live in stores.
The only reason why GetItemFromID has the StoreID parameter is because MAPI
does not load stores until they are accessed.
When a store is loaded it tells MAPI which entry ids it will handle. If a
store has never been touched in the current session, MAPI would not know
which store is reponsible for the given entry id.
If you specify the store id as well, Outlook will load thh parent store
first.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
J

Jeff

Because address entries do not live in stores.
The only reason why GetItemFromID has the StoreID parameter is because MAPI
does not load stores until they are accessed.
When a store is loaded it tells MAPI which entry ids it will handle. If a
store has never been touched in the current session, MAPI would not know
which store is reponsible for the given entry id.
If you specify the store id as well, Outlook will load thh parent store
first.

Thanks Dmitry!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top