Показать сообщение отдельно
Старый 05.08.2008, 20:20   #2  
avf is offline
avf
Участник
 
31 / 24 (1) +++
Регистрация: 28.06.2007
Цитата:
Сообщение от dreamer Посмотреть сообщение
Вроде разобрался:
у метода getItemFromID() есть еще один параметр целочисленный storeId - код папки (в моем случае 2 - Контакты).
Цитата:
Сообщение от RTF MSDN;
Each folder has an ID field called Folder.StoreId, the value of which is the same for all the folders in a particular message store. Each folder also has a unique Entry ID field.
When using the getItemFromID method to retrieve an item based on its ID, you should specify both the EntryID of the item and the StoreID of the folder. If you do not specify the StoreID, getItemFromID searches the default message store.
Цитата:
Сообщение от dreamer Посмотреть сообщение
Но получается,что EntryId уникален только в пределах папки или как? Хм...
Цитата:
Сообщение от RTF MSDN;
Each Outlook item has a field called EntryID, which is a unique ID field generated by the messaging storage system for use with the MAPI folders that store the item. It’s important to note that whenever an item is created in a folder, it is assigned a new EntryID. This means that the EntryID field changes if an item is moved to a different folder or if an item is exported and then imported (even to the same folder).
msdn: Working with EntryIDs and StoreIDs

Последний раз редактировалось avf; 05.08.2008 в 20:23.