Missing Store ID parameter for NameSpace.GetAddressEntryFromID()?

  • Thread starter Thread starter Jeff
  • Start date Start date
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
 
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
-
 
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!
 
Back
Top